36
36
--prefix cache/${{ github.run_id }}/build-cpu \
37
37
./xgboost
38
38
39
- build-cpu-arm64 :
40
- name : Build CPU ARM64 + manylinux_2_28_aarch64 wheel
41
- runs-on :
42
- - runs-on=${{ github.run_id }}
43
- - runner=linux-arm64-cpu
44
- - tag=build-cpu-arm64
45
- steps :
46
- # Restart Docker daemon so that it recognizes the ephemeral disks
47
- - run : sudo systemctl restart docker
48
- - uses : actions/checkout@v4
49
- with :
50
- submodules : " true"
51
- - name : Log into Docker registry (AWS ECR)
52
- run : bash ops/pipeline/login-docker-registry.sh
53
- - run : bash ops/pipeline/build-cpu-arm64.sh
54
- - name : Stash files
55
- run : |
56
- python3 ops/pipeline/manage-artifacts.py upload \
57
- --s3-bucket ${{ env.RUNS_ON_S3_BUCKET_CACHE }} \
58
- --prefix cache/${{ github.run_id }}/build-cpu-arm64 \
59
- ./xgboost python-package/dist/*.whl
60
-
61
39
build-cuda :
62
40
name : Build CUDA + manylinux_2_28_x86_64 wheel
63
41
runs-on :
@@ -122,13 +100,35 @@ jobs:
122
100
bash ops/pipeline/build-cuda.sh \
123
101
xgb-ci.gpu_build_rockylinux8_dev_ver enable-rmm
124
102
125
- build-manylinux2014 :
103
+ build-python-wheels-arm64 :
104
+ name : Build manylinux_2_28_aarch64 wheel
105
+ runs-on :
106
+ - runs-on=${{ github.run_id }}
107
+ - runner=linux-arm64-cpu
108
+ - tag=build-python-wheels-arm64
109
+ steps :
110
+ # Restart Docker daemon so that it recognizes the ephemeral disks
111
+ - run : sudo systemctl restart docker
112
+ - uses : actions/checkout@v4
113
+ with :
114
+ submodules : " true"
115
+ - name : Log into Docker registry (AWS ECR)
116
+ run : bash ops/pipeline/login-docker-registry.sh
117
+ - run : bash ops/pipeline/build-python-wheels-arm64.sh
118
+ - name : Stash files
119
+ run : |
120
+ python3 ops/pipeline/manage-artifacts.py upload \
121
+ --s3-bucket ${{ env.RUNS_ON_S3_BUCKET_CACHE }} \
122
+ --prefix cache/${{ github.run_id }}/build-python-wheels-arm64 \
123
+ ./xgboost python-package/dist/*.whl
124
+
125
+ build-python-wheels-manylinux2014 :
126
126
name : Build manylinux2014_${{ matrix.arch }} wheel
127
127
runs-on :
128
128
- runs-on
129
129
- runner=${{ matrix.runner }}
130
130
- run-id=${{ github.run_id }}
131
- - tag=main-build-manylinux2014-${{ matrix.arch }}
131
+ - tag=main-build-python-wheels- manylinux2014-${{ matrix.arch }}
132
132
strategy :
133
133
fail-fast : false
134
134
matrix :
@@ -145,7 +145,42 @@ jobs:
145
145
submodules : " true"
146
146
- name : Log into Docker registry (AWS ECR)
147
147
run : bash ops/pipeline/login-docker-registry.sh
148
- - run : bash ops/pipeline/build-manylinux2014.sh ${{ matrix.arch }}
148
+ - run : bash ops/pipeline/build-python-wheels-manylinux2014.sh ${{ matrix.arch }}
149
+
150
+ build-python-wheels-cpu :
151
+ name : Build CPU wheel for ${{ matrix.manylinux_target }}_${{ matrix.arch }}
152
+ runs-on :
153
+ - runs-on
154
+ - runner=${{ matrix.runner }}
155
+ - run-id=${{ github.run_id }}
156
+ - tag=main-build-python-wheels-cpu-${{ matrix.manylinux_target }}-${{ matrix.arch }}
157
+ strategy :
158
+ fail-fast : false
159
+ matrix :
160
+ include :
161
+ - manylinux_target : manylinux2014
162
+ arch : aarch64
163
+ runner : linux-arm64-cpu
164
+ - manylinux_target : manylinux2014
165
+ arch : x86_64
166
+ runner : linux-amd64-cpu
167
+ - manylinux_target : manylinux_2_28
168
+ arch : aarch64
169
+ runner : linux-arm64-cpu
170
+ - manylinux_target : manylinux_2_28
171
+ arch : x86_64
172
+ runner : linux-amd64-cpu
173
+ steps :
174
+ # Restart Docker daemon so that it recognizes the ephemeral disks
175
+ - run : sudo systemctl restart docker
176
+ - uses : actions/checkout@v4
177
+ with :
178
+ submodules : " true"
179
+ - name : Log into Docker registry (AWS ECR)
180
+ run : bash ops/pipeline/login-docker-registry.sh
181
+ - run : |
182
+ bash ops/pipeline/build-python-wheels-cpu.sh \
183
+ ${{ matrix.manylinux_target }} ${{ matrix.arch }}
149
184
150
185
build-gpu-rpkg :
151
186
name : Build GPU-enabled R package
@@ -163,7 +198,6 @@ jobs:
163
198
run : bash ops/pipeline/login-docker-registry.sh
164
199
- run : bash ops/pipeline/build-gpu-rpkg.sh
165
200
166
-
167
201
test-cpp-gpu :
168
202
name : >-
169
203
Run Google Tests with GPUs
@@ -208,7 +242,7 @@ jobs:
208
242
209
243
test-python-wheel :
210
244
name : Run Python tests (${{ matrix.description }})
211
- needs : [build-cuda, build-cpu -arm64]
245
+ needs : [build-cuda, build-python-wheels -arm64]
212
246
runs-on :
213
247
- runs-on
214
248
- runner=${{ matrix.runner }}
@@ -238,7 +272,7 @@ jobs:
238
272
image_repo : xgb-ci.aarch64
239
273
suite : cpu-arm64
240
274
runner : linux-arm64-cpu
241
- artifact_from : build-cpu -arm64
275
+ artifact_from : build-python-wheels -arm64
242
276
steps :
243
277
# Restart Docker daemon so that it recognizes the ephemeral disks
244
278
- run : sudo systemctl restart docker
0 commit comments