Use cibuildwheel to generate arm64 and aarch64 wheels
@@ -36,8 +36,6 @@ jobs:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
cibw_build: [cp37-*, cp38-*, cp39-*, cp310-*, cp311-*]
- cibw_archs_linux: [auto, ] # aarch64]
- cibw_skip: ["cp*-musllinux*", ]
steps:
- name: Check out repository
uses: actions/checkout@v2
@@ -53,12 +51,15 @@ jobs:
with:
platforms: all
- name: Build wheels
- uses: pypa/cibuildwheel@v2.11.2
+ uses: pypa/cibuildwheel@v2.11.4
env:
- CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs_linux }}
+ CIBW_ARCHS_LINUX: "x86_64 i686 aarch64"
+ CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"
+ CIBW_ARCHS_WINDOWS: "AMD64 x86"
CIBW_BUILD: ${{ matrix.cibw_build }}
- CIBW_SKIP: ${{ matrix.cibw_skip }}
+ CIBW_SKIP: "cp*-musllinux*"
CIBW_TEST_COMMAND: "tox -c {project}"
+ CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64 *-*linux_{aarch64,ppc64le,s390x}"
CIBW_BEFORE_BUILD: "python -m pip install -U pip && python -m pip install tox"
- name: Save wheels
uses: actions/upload-artifact@v2
