@@ -265,7 +265,6 @@ jobs:
265
265
if : ${{ ! contains(matrix.spec, 'x86_64') }}
266
266
267
267
- name : build/test wheels
268
- id : build
269
268
env :
270
269
CFLAGS : -Dffi_call=cffistatic_ffi_call # override name for ffi_call to break hard if we linked against someone else's libffi
271
270
CIBW_ARCHS_LINUX : all
@@ -302,13 +301,18 @@ jobs:
302
301
# actually build libffi + wheel (using env tweaks above)
303
302
python -m cibuildwheel --output-dir dist ./cffi
304
303
305
- echo "artifact_name=$(ls ./dist/)" >> "$GITHUB_OUTPUT"
304
+ shell : bash
305
+
306
+ - name : determine built wheel filename
307
+ id : built-artifact-lookup
308
+ run : echo "artifact_name=$(ls ./dist/)" >> "${GITHUB_OUTPUT}"
309
+ shell : bash -eEuxo pipefail {0}
306
310
307
311
- name : upload artifacts
308
312
uses : actions/upload-artifact@v4
309
313
with :
310
- name : ${{ steps.build .outputs.artifact_name }}
311
- path : dist/*.whl
314
+ name : ${{ steps.built-artifact-lookup .outputs.artifact_name }}
315
+ path : dist/${{ steps.built-artifact-lookup.outputs.artifact_name }}
312
316
if-no-files-found : error
313
317
if : ${{ env.skip_artifact_upload != 'true' }}
314
318
@@ -404,7 +408,6 @@ jobs:
404
408
brew uninstall --ignore-dependencies libffi 2>&1 || true
405
409
406
410
- name : build/test wheels
407
- id : build
408
411
env :
409
412
CIBW_BUILD : ${{ matrix.spec }}
410
413
CIBW_PRERELEASE_PYTHONS : ' True'
@@ -420,14 +423,19 @@ jobs:
420
423
tar zxf ${{ steps.fetch_sdist.outputs.download-path }}/cffi*.tar.gz/cffi*.tar.gz --strip-components=1 -C cffi
421
424
422
425
python3 -m cibuildwheel --output-dir dist cffi
423
-
424
- echo "artifact_name=$(ls ./dist/)" >> "$GITHUB_OUTPUT"
426
+
427
+ shell : bash
428
+
429
+ - name : determine built wheel filename
430
+ id : built-artifact-lookup
431
+ run : echo "artifact_name=$(ls ./dist/)" >> "${GITHUB_OUTPUT}"
432
+ shell : bash -eEuxo pipefail {0}
425
433
426
434
- name : upload artifacts
427
435
uses : actions/upload-artifact@v4
428
436
with :
429
- name : ${{ steps.build .outputs.artifact_name }}
430
- path : dist/*.whl
437
+ name : ${{ steps.built-artifact-lookup .outputs.artifact_name }}
438
+ path : dist/${{ steps.built-artifact-lookup.outputs.artifact_name }}
431
439
if-no-files-found : error
432
440
if : ${{ env.skip_artifact_upload != 'true' }}
433
441
@@ -495,7 +503,6 @@ jobs:
495
503
name : ${{ needs.build_sdist.outputs.artifact_name }}
496
504
497
505
- name : build/test wheels
498
- id : build
499
506
env :
500
507
CIBW_BUILD : ${{ matrix.spec }}
501
508
CIBW_PRERELEASE_PYTHONS : ' True'
@@ -513,16 +520,19 @@ jobs:
513
520
python -m pip install --upgrade pip
514
521
pip install "${{ matrix.cibw_version || 'cibuildwheel'}}"
515
522
python -m cibuildwheel --output-dir dist cffi
516
-
517
- echo "artifact_name=$(ls ./dist/)" >> "$GITHUB_OUTPUT"
518
523
519
524
shell : bash
520
525
526
+ - name : determine built wheel filename
527
+ id : built-artifact-lookup
528
+ run : echo "artifact_name=$(ls ./dist/)" >> "${GITHUB_OUTPUT}"
529
+ shell : bash -eEuxo pipefail {0}
530
+
521
531
- name : upload artifacts
522
532
uses : actions/upload-artifact@v4
523
533
with :
524
- name : ${{ steps.build .outputs.artifact_name }}
525
- path : dist/*.whl
534
+ name : ${{ steps.built-artifact-lookup .outputs.artifact_name }}
535
+ path : dist/${{ steps.built-artifact-lookup.outputs.artifact_name }}
526
536
if-no-files-found : error
527
537
if : ${{ env.skip_artifact_upload != 'true' }}
528
538
0 commit comments