@@ -267,6 +267,7 @@ jobs:
267
267
if : ${{ ! contains(matrix.spec, 'x86_64') }}
268
268
269
269
- name : build/test wheels
270
+
270
271
env :
271
272
CFLAGS : -Dffi_call=cffistatic_ffi_call # override name for ffi_call to break hard if we linked against someone else's libffi
272
273
CIBW_ARCHS_LINUX : all
@@ -292,29 +293,21 @@ jobs:
292
293
CIBW_PRERELEASE_PYTHONS : ' True'
293
294
CIBW_TEST_REQUIRES : pytest setuptools # 3.12+ no longer includes distutils, just always ensure setuptools is present
294
295
CIBW_TEST_COMMAND : PYTHONUNBUFFERED=1 python -m pytest ${{ matrix.test_args || '{project}' }} # default to test all
295
- run : |
296
- set -eux
297
-
298
- mkdir cffi
299
-
300
- tar zxf ${{ steps.fetch_sdist.outputs.download-path }}/cffi*.tar.gz/cffi*.tar.gz --strip-components=1 -C cffi
301
- python -m pip install --upgrade "${{ matrix.cibw_version || 'cibuildwheel' }}"
302
-
303
- # actually build libffi + wheel (using env tweaks above)
304
- python -m cibuildwheel --output-dir dist ./cffi
305
-
306
- shell : bash
296
+ with :
297
+ package-dir : >-
298
+ ${{ steps.fetch_sdist.outputs.download-path
299
+ }}/${{ needs.python_sdist.outputs.artifact_name }}
307
300
308
301
- name : determine built wheel filename
309
302
id : built-artifact-lookup
310
- run : echo "artifact_name=$(ls ./dist /)" >> "${GITHUB_OUTPUT}"
303
+ run : echo "artifact_name=$(ls ./wheelhouse /)" >> "${GITHUB_OUTPUT}"
311
304
shell : bash -eEuxo pipefail {0}
312
305
313
306
- name : upload artifacts
314
307
uses : actions/upload-artifact@v4
315
308
with :
316
309
name : ${{ steps.built-artifact-lookup.outputs.artifact_name }}
317
- path : dist /${{ steps.built-artifact-lookup.outputs.artifact_name }}
310
+ path : wheelhouse /${{ steps.built-artifact-lookup.outputs.artifact_name }}
318
311
if-no-files-found : error
319
312
if : ${{ env.skip_artifact_upload != 'true' }}
320
313
@@ -410,34 +403,29 @@ jobs:
410
403
brew uninstall --ignore-dependencies libffi 2>&1 || true
411
404
412
405
- name : build/test wheels
406
+
413
407
env :
414
408
CIBW_BUILD : ${{ matrix.spec }}
415
409
CIBW_PRERELEASE_PYTHONS : ' True'
416
410
CIBW_TEST_REQUIRES : pytest setuptools
417
411
CIBW_TEST_COMMAND : pip install pip --upgrade; cd {project}; PYTHONUNBUFFERED=1 pytest
418
412
MACOSX_DEPLOYMENT_TARGET : ${{ matrix.deployment_target || '10.9' }}
419
413
SDKROOT : ${{ matrix.sdkroot || 'macosx' }}
420
- run : |
421
- set -eux
422
-
423
- mkdir cffi
424
-
425
- tar zxf ${{ steps.fetch_sdist.outputs.download-path }}/cffi*.tar.gz/cffi*.tar.gz --strip-components=1 -C cffi
426
-
427
- python3 -m cibuildwheel --output-dir dist cffi
428
-
429
- shell : bash
414
+ with :
415
+ package-dir : >-
416
+ ${{ steps.fetch_sdist.outputs.download-path
417
+ }}/${{ needs.python_sdist.outputs.artifact_name }}
430
418
431
419
- name : determine built wheel filename
432
420
id : built-artifact-lookup
433
- run : echo "artifact_name=$(ls ./dist /)" >> "${GITHUB_OUTPUT}"
421
+ run : echo "artifact_name=$(ls ./wheelhouse /)" >> "${GITHUB_OUTPUT}"
434
422
shell : bash -eEuxo pipefail {0}
435
423
436
424
- name : upload artifacts
437
425
uses : actions/upload-artifact@v4
438
426
with :
439
427
name : ${{ steps.built-artifact-lookup.outputs.artifact_name }}
440
- path : dist /${{ steps.built-artifact-lookup.outputs.artifact_name }}
428
+ path : wheelhouse /${{ steps.built-artifact-lookup.outputs.artifact_name }}
441
429
if-no-files-found : error
442
430
if : ${{ env.skip_artifact_upload != 'true' }}
443
431
@@ -505,36 +493,29 @@ jobs:
505
493
name : ${{ needs.python_sdist.outputs.artifact_name }}
506
494
507
495
- name : build/test wheels
496
+
508
497
env :
509
498
CIBW_BUILD : ${{ matrix.spec }}
510
499
CIBW_PRERELEASE_PYTHONS : ' True'
511
500
CIBW_TEST_REQUIRES : pytest setuptools
512
501
CIBW_TEST_COMMAND : ' python -m pytest {package}/src/c'
513
502
# FIXME: /testing takes ~45min on Windows and has some failures...
514
503
# CIBW_TEST_COMMAND='python -m pytest {package}/src/c {project}/testing'
515
- run : |
516
- set -eux
517
-
518
- mkdir cffi
519
-
520
- tar zxf cffi*.tar.gz/cffi*.tar.gz --strip-components=1 -C cffi
521
-
522
- python -m pip install --upgrade pip
523
- pip install "${{ matrix.cibw_version || 'cibuildwheel'}}"
524
- python -m cibuildwheel --output-dir dist cffi
525
-
526
- shell : bash
504
+ with :
505
+ package-dir : >-
506
+ ${{ steps.fetch_sdist.outputs.download-path
507
+ }}/${{ needs.python_sdist.outputs.artifact_name }}
527
508
528
509
- name : determine built wheel filename
529
510
id : built-artifact-lookup
530
- run : echo "artifact_name=$(ls ./dist /)" >> "${GITHUB_OUTPUT}"
511
+ run : echo "artifact_name=$(ls ./wheelhouse /)" >> "${GITHUB_OUTPUT}"
531
512
shell : bash -eEuxo pipefail {0}
532
513
533
514
- name : upload artifacts
534
515
uses : actions/upload-artifact@v4
535
516
with :
536
517
name : ${{ steps.built-artifact-lookup.outputs.artifact_name }}
537
- path : dist /${{ steps.built-artifact-lookup.outputs.artifact_name }}
518
+ path : wheelhouse /${{ steps.built-artifact-lookup.outputs.artifact_name }}
538
519
if-no-files-found : error
539
520
if : ${{ env.skip_artifact_upload != 'true' }}
540
521
0 commit comments