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