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