@@ -14,46 +14,51 @@ jobs:
1414 include :
1515 - os : macos-12 # x86_64
1616 name : mac
17+ env :
18+ macosx_deployment_target : " 12.0"
1719 cibw :
18- build : " cp37* cp38* cp39* cp310* cp311* cp312*"
20+ build : " cp39* cp310* cp311* cp312*"
1921 - os : macos-13-large # Apple Silicon
2022 name : mac_arm64
23+ env :
24+ macosx_deployment_target : " 13.0"
2125 cibw :
22- build : " cp37* cp38* cp39* cp310* cp311* cp312*"
23- - os : ubuntu-20 .04
26+ build : " cp39* cp310* cp311* cp312*"
27+ - os : ubuntu-22 .04
2428 name : manylinux2014
2529 cibw :
2630 arch : x86_64
27- build : " cp37* cp38* cp39* cp310* cp311* cp312*"
31+ build : " cp39* cp310* cp311* cp312*"
2832 manylinux_image : manylinux2014
2933 - os : windows-2019
3034 name : win_amd64
3135 architecture : x64
3236 cibw :
33- build : " cp37-win_amd64 cp38-win_amd64 cp39-win_amd64 cp310-win_amd64 cp311-win_amd64 cp312-win_amd64"
37+ build : " cp39-win_amd64 cp310-win_amd64 cp311-win_amd64 cp312-win_amd64"
3438 env :
39+ MACOSX_DEPLOYMENT_TARGET : " ${{ matrix.env.macosx_deployment_target }}"
3540 CIBW_BUILD : " ${{ matrix.cibw.build || '*' }}"
3641 CIBW_SKIP : " *musllinux*"
3742 CIBW_ARCHS : " ${{ matrix.cibw.arch || 'auto' }}"
3843 CIBW_MANYLINUX_X86_64_IMAGE : " ${{ matrix.cibw.manylinux_image }}"
39- CIBW_BEFORE_BUILD_MACOS : " brew install libomp llvm && brew link --overwrite python@3.11 && brew link --force libomp"
44+ CIBW_BEFORE_BUILD_MACOS : " brew install libomp llvm@12 && brew link --overwrite python@3.11 && brew link --force libomp"
4045 CIBW_REPAIR_WHEEL_COMMAND_MACOS : " delocate-listdeps {wheel} && delocate-wheel --verbose --require-archs {delocate_archs} -w {dest_dir} {wheel}"
4146 # to install latest delocate package
4247 CIBW_DEPENDENCY_VERSIONS : " latest"
4348 # due to package and module name conflict have to temporarily move it away to run tests
44- CIBW_BEFORE_TEST : mv {package}/qsimcirq /tmp
49+ CIBW_BEFORE_TEST : " mv {package}/qsimcirq /tmp"
4550 CIBW_TEST_EXTRAS : " dev"
4651 CIBW_TEST_COMMAND : " pytest {package}/qsimcirq_tests/qsimcirq_test.py && mv /tmp/qsimcirq {package}"
4752 steps :
48- - uses : actions/checkout@v2
53+ - uses : actions/checkout@v4
4954
5055 # Used to host cibuildwheel
51- - uses : actions/setup-python@v2
56+ - uses : actions/setup-python@v5
5257 with :
5358 python-version : ' 3.11'
5459
5560 - name : Install cibuildwheel and twine
56- run : python -m pip install cibuildwheel==2.16.2
61+ run : python -m pip install cibuildwheel==2.20.0
5762
5863 - name : Install requirements
5964 run : python -m pip install -r requirements.txt
@@ -64,20 +69,21 @@ jobs:
6469 - name : Build wheels
6570 run : python -m cibuildwheel --output-dir wheelhouse
6671
67- - uses : actions/upload-artifact@v2
72+ - uses : actions/upload-artifact@v4
6873 with :
69- name : python-wheels
74+ name : python-wheels-${{ matrix.name }}
7075 path : ./wheelhouse/*.whl
7176 release-wheels :
7277 name : Publish all wheels
7378 needs : [build_wheels]
7479 runs-on : ubuntu-latest
7580 steps :
7681 - name : Download build artifacts
77- uses : actions/download-artifact@v2
82+ uses : actions/download-artifact@v4
7883 with :
79- name : python-wheels
8084 path : dist/
85+ pattern : python-wheels-*
86+ merge-multiple : true
8187 - name : Publish wheels
8288 uses : pypa/gh-action-pypi-publish@release/v1
8389 with :
0 commit comments