@@ -13,10 +13,10 @@ jobs:
1313 name : ${{ matrix.os }}
1414
1515 steps :
16- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v3
1717
1818 - name : Set up Python
19- uses : actions/setup-python@v1
19+ uses : actions/setup-python@v4
2020 with :
2121 python-version : " 3.7"
2222
@@ -37,42 +37,51 @@ jobs:
3737 strategy :
3838 fail-fast : false
3939 matrix :
40- os : ["ubuntu-latest ", "macOS-latest ", "windows-latest "]
41- cp : ["cp37", "cp38", "cp39", "cp310"]
40+ os : ["ubuntu-20.04 ", "windows-2019 ", "macos-11 "]
41+ cp : ["cp37", "cp38", "cp39", "cp310", "cp311" ]
4242
4343 timeout-minutes : 30
4444
4545 runs-on : ${{ matrix.os }}
4646 name : ${{ matrix.os }} - ${{ matrix.cp }}
4747
4848 steps :
49- - uses : actions/checkout@v2
49+ - uses : actions/checkout@v3
5050
5151 - name : Set up Python
52- uses : actions/setup-python@v1
52+ uses : actions/setup-python@v4
5353 with :
5454 python-version : " 3.10"
5555
5656 - name : Install dependencies
5757 run : |
58- python -m pip install --upgrade pip wheel setuptools hatch
59- pip install --upgrade twine
58+ python -m pip install --upgrade pip wheel setuptools
59+ python -m pip install --upgrade twine build
6060
6161 - name : Set up QEMU
6262 if : runner.os == 'Linux'
63- uses : docker/setup-qemu-action@v1
63+ uses : docker/setup-qemu-action@v2
6464 with :
6565 platforms : all
6666
6767 - name : Build wheels
68- uses : pypa/cibuildwheel@v2.3.1
68+ uses : pypa/cibuildwheel@v2.11.2
6969 env :
7070 CIBW_ARCHS_LINUX : auto aarch64
71+ CIBW_ARCHS_MACOS : x86_64 arm64 universal2
7172 CIBW_BUILD : |
72- ${{ matrix.cp }}-manylinux_x86_64 ${{ matrix.cp }}-manylinux_i686 ${{ matrix.cp }}-manylinux_aarch64 ${{ matrix.cp }}-win_amd64 ${{ matrix.cp }}-win32 ${{ matrix.cp }}-macosx_x86_64
73+ ${{ matrix.cp }}-manylinux_x86_64
74+ ${{ matrix.cp }}-manylinux_i686
75+ ${{ matrix.cp }}-manylinux_aarch64
76+ ${{ matrix.cp }}-win_amd64
77+ ${{ matrix.cp }}-win32
78+ ${{ matrix.cp }}-macosx_x86_64
79+ ${{ matrix.cp }}-macosx_arm64
80+ ${{ matrix.cp }}-macosx_universal2
7381 CIBW_REPAIR_WHEEL_COMMAND : " " # Disable auditwheel
7482 CIBW_TEST_REQUIRES : pytest
7583 CIBW_TEST_COMMAND : pytest -v -s {package}/tests
84+ CIBW_TEST_SKIP : " *-macosx_arm64 *-macosx_universal2:arm64"
7685
7786 - name : Publish to PyPI
7887 if : success() && github.event_name == 'push' && env.TWINE_PASSWORD != '' && github.ref == 'refs/heads/master'
8190 TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
8291 run : |
8392 twine upload ./wheelhouse/*.whl --skip-existing
84- hatch build -t sdist
93+ python -m build -- sdist
8594 twine upload ./dist/*.tar.gz --skip-existing
0 commit comments