Skip to content

Commit c04ec91

Browse files
author
Matevz Morato
committed
Update github actions to download-artifact and upload-artifact to v4
1 parent 4c0faec commit c04ec91

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
key: hunter-ubuntu-latest
3939
- name: List .hunter cache directory
4040
run: ls -a -l ~/.hunter/_Base/ || true
41-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@v4
4242
with:
4343
submodules: 'recursive'
4444
- name: Set up Python
@@ -55,7 +55,7 @@ jobs:
5555
- name: Build target 'pybind11_mkdoc'
5656
run: cmake --build build --target pybind11_mkdoc --parallel 4
5757
- name: Upload docstring artifacts
58-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
5959
with:
6060
name: docstrings
6161
path: docstrings/
@@ -90,7 +90,7 @@ jobs:
9090
with:
9191
submodules: 'recursive'
9292

93-
- uses: actions/download-artifact@v3
93+
- uses: actions/download-artifact@v4
9494
with:
9595
name: 'docstrings'
9696
path: docstrings
@@ -145,7 +145,7 @@ jobs:
145145
with:
146146
submodules: 'recursive'
147147

148-
- uses: actions/download-artifact@v3
148+
- uses: actions/download-artifact@v4
149149
with:
150150
name: 'docstrings'
151151
path: docstrings
@@ -165,9 +165,9 @@ jobs:
165165
mkdir -p wheelhouse/audited/
166166
for whl in wheelhouse/preaudited/*linux_armv6l*.whl; do cp "$whl" wheelhouse/audited/$(basename $whl); done
167167
- name: Archive wheel artifacts
168-
uses: actions/upload-artifact@v3
168+
uses: actions/upload-artifact@v4
169169
with:
170-
name: audited-wheels
170+
name: audited-wheels-arm-${{ matrix.rpi-os }}
171171
path: wheelhouse/audited/
172172
- name: Deploy wheels to artifactory (if not a release)
173173
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -197,7 +197,7 @@ jobs:
197197
with:
198198
submodules: 'recursive'
199199

200-
- uses: actions/download-artifact@v3
200+
- uses: actions/download-artifact@v4
201201
with:
202202
name: 'docstrings'
203203
path: docstrings
@@ -221,9 +221,9 @@ jobs:
221221
- name: Building wheels
222222
run: python -m pip wheel . -w ./wheelhouse/audited/ --verbose
223223
- name: Archive wheel artifacts
224-
uses: actions/upload-artifact@v3
224+
uses: actions/upload-artifact@v4
225225
with:
226-
name: audited-wheels
226+
name: audited-wheels-windows-${{ matrix.python-version }}-${{ matrix.python-architecture }}
227227
path: wheelhouse/audited/
228228
- name: Deploy wheels to artifactory (if not a release)
229229
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -256,7 +256,7 @@ jobs:
256256
with:
257257
submodules: 'recursive'
258258

259-
- uses: actions/download-artifact@v3
259+
- uses: actions/download-artifact@v4
260260
with:
261261
name: 'docstrings'
262262
path: docstrings
@@ -282,9 +282,9 @@ jobs:
282282
- name: Auditing wheels
283283
run: ci/repair-whl-macos.sh `pwd`/wheelhouse/* `pwd`/wheelhouse/audited
284284
- name: Archive wheel artifacts
285-
uses: actions/upload-artifact@v3
285+
uses: actions/upload-artifact@v4
286286
with:
287-
name: audited-wheels
287+
name: audited-wheels-macos-x86_64-${{ matrix.python-version }}
288288
path: wheelhouse/audited/
289289
- name: Deploy wheels to artifactory (if not a release)
290290
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -314,7 +314,7 @@ jobs:
314314
with:
315315
submodules: 'recursive'
316316

317-
- uses: actions/download-artifact@v3
317+
- uses: actions/download-artifact@v4
318318
with:
319319
name: 'docstrings'
320320
path: docstrings
@@ -339,9 +339,9 @@ jobs:
339339
run: delocate-wheel -v -w wheelhouse/audited wheelhouse/*.whl
340340

341341
- name: Archive wheel artifacts
342-
uses: actions/upload-artifact@v3
342+
uses: actions/upload-artifact@v4
343343
with:
344-
name: audited-wheels
344+
name: audited-wheels-macos-arm64
345345
path: wheelhouse/audited/
346346
- name: Deploy wheels to artifactory (if not a release)
347347
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -377,7 +377,7 @@ jobs:
377377
- name: Create folder structure
378378
run: mkdir -p wheelhouse/audited/
379379

380-
- uses: actions/download-artifact@v3
380+
- uses: actions/download-artifact@v4
381381
with:
382382
name: 'docstrings'
383383
path: docstrings
@@ -403,9 +403,9 @@ jobs:
403403
- name: Audit wheels
404404
run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done
405405
- name: Archive wheel artifacts
406-
uses: actions/upload-artifact@v3
406+
uses: actions/upload-artifact@v4
407407
with:
408-
name: audited-wheels
408+
name: audited-wheels-linux-x86_64
409409
path: wheelhouse/audited/
410410
- name: Deploy wheels to artifactory (if not a release)
411411
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -439,7 +439,7 @@ jobs:
439439
- name: Create folder structure
440440
run: mkdir -p wheelhouse/audited/
441441

442-
- uses: actions/download-artifact@v3
442+
- uses: actions/download-artifact@v4
443443
with:
444444
name: 'docstrings'
445445
path: docstrings
@@ -460,9 +460,9 @@ jobs:
460460
- name: Auditing wheels
461461
run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done
462462
- name: Archive wheel artifacts
463-
uses: actions/upload-artifact@v3
463+
uses: actions/upload-artifact@v4
464464
with:
465-
name: audited-wheels
465+
name: audited-wheels-linux-arm64
466466
path: wheelhouse/audited/
467467
- name: Deploy wheels to artifactory (if not a release)
468468
if: startsWith(github.ref, 'refs/tags/v') != true
@@ -516,9 +516,10 @@ jobs:
516516
- uses: actions/checkout@v3
517517
with:
518518
submodules: 'recursive'
519-
- uses: actions/download-artifact@v3
519+
- uses: actions/download-artifact@v4
520520
with:
521-
name: audited-wheels
521+
pattern: audited-wheels*
522+
merge-multiple: true
522523
path: wheelhouse/audited/
523524
- name: List files
524525
run: ls -lah

0 commit comments

Comments
 (0)