@@ -32,13 +32,13 @@ jobs:
32
32
runs-on : ubuntu-latest
33
33
steps :
34
34
- name : Cache .hunter folder
35
- uses : actions/cache@v3
35
+ uses : actions/cache@v4
36
36
with :
37
37
path : ~/.hunter
38
38
key : hunter-ubuntu-latest
39
39
- name : List .hunter cache directory
40
40
run : ls -a -l ~/.hunter/_Base/ || true
41
- - uses : actions/checkout@v3
41
+ - uses : actions/checkout@v4
42
42
with :
43
43
submodules : ' recursive'
44
44
- name : Set up Python
55
55
- name : Build target 'pybind11_mkdoc'
56
56
run : cmake --build build --target pybind11_mkdoc --parallel 4
57
57
- name : Upload docstring artifacts
58
- uses : actions/upload-artifact@v3
58
+ uses : actions/upload-artifact@v4
59
59
with :
60
60
name : docstrings
61
61
path : docstrings/
@@ -79,22 +79,22 @@ jobs:
79
79
cmake-version : ' 3.29.x'
80
80
- name : Cache .hunter folder
81
81
if : matrix.os != 'windows-latest'
82
- uses : actions/cache@v3
82
+ uses : actions/cache@v4
83
83
with :
84
84
path : ~/.hunter/
85
85
key : hunter-pytest-${{ matrix.os }}
86
86
- name : Cache .hunter folder
87
87
if : matrix.os == 'windows-latest'
88
- uses : actions/cache@v3
88
+ uses : actions/cache@v4
89
89
with :
90
90
path : C:/.hunter/
91
91
key : hunter-pytest-${{ matrix.os }}
92
92
93
- - uses : actions/checkout@v3
93
+ - uses : actions/checkout@v4
94
94
with :
95
95
submodules : ' recursive'
96
96
97
- - uses : actions/download-artifact@v3
97
+ - uses : actions/download-artifact@v4
98
98
with :
99
99
name : ' docstrings'
100
100
path : docstrings
@@ -136,20 +136,16 @@ jobs:
136
136
needs : build-docstrings
137
137
strategy :
138
138
matrix :
139
- rpi-os : [rpi-buster, rpi- bullseye, rpi-bookworm]
139
+ rpi-os : [rpi-bullseye, rpi-bookworm]
140
140
runs-on : ${{ matrix.rpi-os }}
141
- env :
142
- # workaround required for cache@v3, https://github.com/actions/cache/issues/1428
143
- # to be removed when upgrading the manylinux image
144
- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
145
141
steps :
146
142
- name : Print home directory
147
143
run : echo Home directory inside container $HOME
148
- - uses : actions/checkout@v3
144
+ - uses : actions/checkout@v4
149
145
with :
150
146
submodules : ' recursive'
151
147
152
- - uses : actions/download-artifact@v3
148
+ - uses : actions/download-artifact@v4
153
149
with :
154
150
name : ' docstrings'
155
151
path : docstrings
@@ -169,9 +165,9 @@ jobs:
169
165
mkdir -p wheelhouse/audited/
170
166
for whl in wheelhouse/preaudited/*linux_armv6l*.whl; do cp "$whl" wheelhouse/audited/$(basename $whl); done
171
167
- name : Archive wheel artifacts
172
- uses : actions/upload-artifact@v3
168
+ uses : actions/upload-artifact@v4
173
169
with :
174
- name : audited-wheels
170
+ name : audited-wheels-${{ matrix.rpi-os }}
175
171
path : wheelhouse/audited/
176
172
- name : Deploy wheels to artifactory (if not a release)
177
173
if : startsWith(github.ref, 'refs/tags/v') != true
@@ -188,20 +184,20 @@ jobs:
188
184
runs-on : windows-latest
189
185
strategy :
190
186
matrix :
191
- python-version : [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
187
+ python-version : [3.7, 3.8, 3.9, '3.10', '3.11', '3.12', '3.13' ]
192
188
python-architecture : [x64, x86]
193
189
fail-fast : false
194
190
steps :
195
191
- name : Cache .hunter folder
196
- uses : actions/cache@v3
192
+ uses : actions/cache@v4
197
193
with :
198
194
path : C:/.hunter
199
195
key : hunter-msvc
200
- - uses : actions/checkout@v3
196
+ - uses : actions/checkout@v4
201
197
with :
202
198
submodules : ' recursive'
203
199
204
- - uses : actions/download-artifact@v3
200
+ - uses : actions/download-artifact@v4
205
201
with :
206
202
name : ' docstrings'
207
203
path : docstrings
@@ -227,9 +223,9 @@ jobs:
227
223
- name : Building wheels
228
224
run : python -m pip wheel . -w ./wheelhouse/audited/ --verbose
229
225
- name : Archive wheel artifacts
230
- uses : actions/upload-artifact@v3
226
+ uses : actions/upload-artifact@v4
231
227
with :
232
- name : audited-wheels
228
+ name : audited-wheels-windows-${{ matrix.python-version }}-${{ matrix.python-architecture }}
233
229
path : wheelhouse/audited/
234
230
- name : Deploy wheels to artifactory (if not a release)
235
231
if : startsWith(github.ref, 'refs/tags/v') != true
@@ -244,12 +240,12 @@ jobs:
244
240
needs : build-docstrings
245
241
strategy :
246
242
matrix :
247
- python-version : [3.8, 3.9, '3.10', '3.11', '3.12']
243
+ python-version : [3.8, 3.9, '3.10', '3.11', '3.12', '3.13' ]
248
244
os : [macos-13, macos-14] # macos-13 is x64, macos-14 is arm64
249
245
runs-on : ${{ matrix.os }}
250
246
steps :
251
247
- name : Cache .hunter folder
252
- uses : actions/cache@v3
248
+ uses : actions/cache@v4
253
249
with :
254
250
path : ~/.hunter
255
251
key : hunter-macos-latest
@@ -258,11 +254,11 @@ jobs:
258
254
ls -a -l ~/.hunter/_Base/ || true
259
255
echo "PATH=$PATH"
260
256
261
- - uses : actions/checkout@v3
257
+ - uses : actions/checkout@v4
262
258
with :
263
259
submodules : ' recursive'
264
260
265
- - uses : actions/download-artifact@v3
261
+ - uses : actions/download-artifact@v4
266
262
with :
267
263
name : ' docstrings'
268
264
path : docstrings
@@ -288,9 +284,9 @@ jobs:
288
284
- name : Auditing wheels
289
285
run : ci/repair-whl-macos.sh `pwd`/wheelhouse/* `pwd`/wheelhouse/audited
290
286
- name : Archive wheel artifacts
291
- uses : actions/upload-artifact@v3
287
+ uses : actions/upload-artifact@v4
292
288
with :
293
- name : audited-wheels
289
+ name : audited-wheels-macos-${{ matrix.python-version }}-${{ matrix.os }}
294
290
path : wheelhouse/audited/
295
291
- name : Deploy wheels to artifactory (if not a release)
296
292
if : startsWith(github.ref, 'refs/tags/v') != true
@@ -304,21 +300,17 @@ jobs:
304
300
build-linux-x86_64 :
305
301
needs : build-docstrings
306
302
runs-on : ubuntu-latest
307
- env :
308
- # workaround required for cache@v3, https://github.com/actions/cache/issues/1428
309
- # to be removed when upgrading the manylinux image
310
- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
311
303
container :
312
- image : quay.io/pypa/manylinux2014_x86_64:latest
304
+ image : quay.io/pypa/manylinux_2_28_x86_64:2024.12.05-1
313
305
env :
314
- PLAT : manylinux2014_x86_64
306
+ PLAT : manylinux_2_28_x86_64
315
307
steps :
316
308
- name : Cache .hunter folder
317
- uses : actions/cache@v3
309
+ uses : actions/cache@v4
318
310
with :
319
311
path : ~/.hunter
320
312
key : hunter-x86_64
321
- - uses : actions/checkout@v3
313
+ - uses : actions/checkout@v4
322
314
with :
323
315
submodules : ' recursive'
324
316
- name : Installing libusb1-devel dependency
@@ -330,7 +322,7 @@ jobs:
330
322
- name : Create folder structure
331
323
run : mkdir -p wheelhouse/audited/
332
324
333
- - uses : actions/download-artifact@v3
325
+ - uses : actions/download-artifact@v4
334
326
with :
335
327
name : ' docstrings'
336
328
path : docstrings
@@ -352,13 +344,13 @@ jobs:
352
344
/opt/python/cp38-cp38/bin/python3.8 setup.py sdist --formats=gztar
353
345
mv dist/* wheelhouse/audited/
354
346
- name : Build wheels
355
- run : for PYBIN in /opt/python/cp3{7..12 }*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
347
+ run : for PYBIN in /opt/python/cp3{7..13 }*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
356
348
- name : Audit wheels
357
349
run : for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done
358
350
- name : Archive wheel artifacts
359
- uses : actions/upload-artifact@v3
351
+ uses : actions/upload-artifact@v4
360
352
with :
361
- name : audited-wheels
353
+ name : audited-wheels-linux-x86_64
362
354
path : wheelhouse/audited/
363
355
- name : Deploy wheels to artifactory (if not a release)
364
356
if : startsWith(github.ref, 'refs/tags/v') != true
@@ -371,20 +363,16 @@ jobs:
371
363
# This job builds wheels for ARM64 arch
372
364
build-linux-arm64 :
373
365
needs : build-docstrings
374
- runs-on : [self-hosted, linux, ARM64]
375
- env :
376
- # workaround required for cache@v3, https://github.com/actions/cache/issues/1428
377
- # to be removed when upgrading the manylinux image
378
- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
366
+ runs-on : ubuntu-24.04-arm
379
367
container :
380
- image : quay.io/pypa/manylinux2014_aarch64:latest
368
+ image : quay.io/pypa/manylinux_2_28_aarch64:2024.12.05-1
381
369
env :
382
- PLAT : manylinux2014_aarch64
370
+ PLAT : manylinux_2_28_aarch64
383
371
# Mount local hunter cache directory, instead of transfering to Github and back
384
372
volumes :
385
373
- /.hunter:/github/home/.hunter
386
374
steps :
387
- - uses : actions/checkout@v3
375
+ - uses : actions/checkout@v4
388
376
with :
389
377
submodules : ' recursive'
390
378
- name : Installing libusb1-devel dependency
@@ -396,7 +384,7 @@ jobs:
396
384
- name : Create folder structure
397
385
run : mkdir -p wheelhouse/audited/
398
386
399
- - uses : actions/download-artifact@v3
387
+ - uses : actions/download-artifact@v4
400
388
with :
401
389
name : ' docstrings'
402
390
path : docstrings
@@ -413,13 +401,13 @@ jobs:
413
401
if : startsWith(github.ref, 'refs/tags/v') != true
414
402
run : echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV
415
403
- name : Building wheels
416
- run : for PYBIN in /opt/python/cp3{7..12 }*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
404
+ run : for PYBIN in /opt/python/cp3{7..13 }*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done
417
405
- name : Auditing wheels
418
406
run : for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done
419
407
- name : Archive wheel artifacts
420
- uses : actions/upload-artifact@v3
408
+ uses : actions/upload-artifact@v4
421
409
with :
422
- name : audited-wheels
410
+ name : audited-wheels-linux-arm64
423
411
path : wheelhouse/audited/
424
412
- name : Deploy wheels to artifactory (if not a release)
425
413
if : startsWith(github.ref, 'refs/tags/v') != true
@@ -435,7 +423,7 @@ jobs:
435
423
runs-on : ubuntu-latest
436
424
437
425
steps :
438
- - uses : actions/checkout@v3
426
+ - uses : actions/checkout@v4
439
427
with :
440
428
submodules : ' recursive'
441
429
@@ -470,12 +458,13 @@ jobs:
470
458
needs : [release]
471
459
runs-on : ubuntu-latest
472
460
steps :
473
- - uses : actions/checkout@v3
461
+ - uses : actions/checkout@v4
474
462
with :
475
463
submodules : ' recursive'
476
- - uses : actions/download-artifact@v3
464
+ - uses : actions/download-artifact@v4
477
465
with :
478
- name : audited-wheels
466
+ pattern : audited-wheels*
467
+ merge-multiple : true
479
468
path : wheelhouse/audited/
480
469
- name : List files
481
470
run : ls -lah
0 commit comments