Skip to content

Commit 709eeec

Browse files
authored
[CI/CD] Add support for cu12.4 (#69)
* add cu12.4 in build all * change index * CI default to cu12.4 --------- Co-authored-by: John Calderon <[email protected]>
1 parent 606afc4 commit 709eeec

File tree

2 files changed

+65
-8
lines changed

2 files changed

+65
-8
lines changed

.github/workflows/whl-build-all.yaml

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
create-habitat-index-html:
8-
needs: [whl-build-cu118, whl-build-cu121]
8+
needs: [whl-build-cu118, whl-build-cu121, whl-build-cu124]
99
runs-on: [self-hosted]
1010
steps:
1111
- name: Configure AWS Credentials
@@ -17,7 +17,7 @@ jobs:
1717

1818
- name: Create index.html
1919
run: |
20-
python3 /home/builduser/create_index.py habitat -f wheels-cu113 wheels-cu116 wheels-cu117 wheels-cu118 wheels-cu121
20+
python3 /home/builduser/create_index.py habitat -f wheels-cu118 wheels-cu121 wheels-cu124
2121
- name: Upload to S3
2222
run: |
2323
aws s3 cp index.html s3://centml-releases/habitat/
@@ -138,4 +138,61 @@ jobs:
138138
python3 /home/builduser/create_index.py habitat_cu121 -f $formatted_file_list
139139
- name: Upload index.html to S3
140140
run: |
141-
aws s3 cp index.html s3://centml-releases/habitat/wheels-cu121/
141+
aws s3 cp index.html s3://centml-releases/habitat/wheels-cu121/
142+
143+
whl-build-cu124:
144+
runs-on: [self-hosted, cu124]
145+
steps:
146+
- name: Configure AWS Credentials
147+
uses: aws-actions/configure-aws-credentials@v4
148+
with:
149+
aws-access-key-id: ${{ secrets.HABITAT_AWS_ACCESS_KEY }}
150+
aws-region: ${{ secrets.HABITAT_AWS_REGION }}
151+
aws-secret-access-key: ${{ secrets.HABITAT_AWS_SECRET_ACCESS_KEY }}
152+
153+
- name: Display host information
154+
run: |
155+
uname -a
156+
hostname
157+
pwd
158+
id
159+
ls -la
160+
- name: Fetch repository
161+
uses: actions/checkout@v4
162+
163+
- name: Build Python3.8 wheel
164+
run: |
165+
./build_scripts/build_wheel.sh python3.8
166+
env:
167+
VERSION_CUDA_TAG: cu124
168+
169+
- name: Build Python3.9 wheel
170+
run: |
171+
./build_scripts/build_wheel.sh python3.9
172+
env:
173+
VERSION_CUDA_TAG: cu124
174+
175+
- name: Build Python3.10 wheel
176+
run: |
177+
./build_scripts/build_wheel.sh python3.10
178+
env:
179+
VERSION_CUDA_TAG: cu124
180+
181+
- name: Build Python3.11 wheel
182+
run: |
183+
./build_scripts/build_wheel.sh python3.11
184+
env:
185+
VERSION_CUDA_TAG: cu124
186+
187+
- name: Upload wheels to S3
188+
run: |
189+
aws s3 cp analyzer/dist/ s3://centml-releases/habitat/wheels-cu124/ --recursive --exclude "*" --include "*.whl"
190+
191+
- name: Create index.html
192+
run: |
193+
file_list=(analyzer/dist/*.whl)
194+
formatted_file_list=$(basename -a ${file_list[@]})
195+
python3 /home/builduser/create_index.py habitat_cu124 -f $formatted_file_list
196+
- name: Upload index.html to S3
197+
run: |
198+
aws s3 cp index.html s3://centml-releases/habitat/wheels-cu124/

.github/workflows/whl-build-ec2.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
git tag ${{ github.event.inputs.tag }}
4444
4545
build-release:
46-
runs-on: [self-hosted, cu121]
46+
runs-on: [self-hosted, cu124]
4747
steps:
4848
- name: Fetch repository
4949
uses: actions/checkout@v3
@@ -66,7 +66,7 @@ jobs:
6666
run: |
6767
./build_scripts/build_wheel.sh python3.11
6868
69-
- uses: actions/upload-artifact@v3
69+
- uses: actions/upload-artifact@v4
7070
with:
7171
name: ${{ github.event.inputs.tag }}
7272
path: analyzer/dist/*.whl
@@ -83,7 +83,7 @@ jobs:
8383
ref: release/${{ github.event.inputs.tag }}
8484

8585
- name: Download artifact
86-
uses: actions/download-artifact@v3
86+
uses: actions/download-artifact@v4
8787
with:
8888
name: ${{ github.event.inputs.tag }}
8989
path: dist
@@ -114,7 +114,7 @@ jobs:
114114

115115
steps:
116116
- name: Download artifact
117-
uses: actions/download-artifact@v3
117+
uses: actions/download-artifact@v4
118118
with:
119119
name: ${{ github.event.inputs.tag }}
120120
path: dist
@@ -135,7 +135,7 @@ jobs:
135135

136136
steps:
137137
- name: Download artifact
138-
uses: actions/download-artifact@v3
138+
uses: actions/download-artifact@v4
139139
with:
140140
name: ${{ github.event.inputs.tag }}
141141
path: dist

0 commit comments

Comments
 (0)