diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 1838751d..99fa394d 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -58,13 +58,15 @@ jobs: fail-fast: false matrix: buildplat: - - [ubuntu-20.04, musllinux_x86_64] - - [macos-12, macosx_*] - - [windows-2019, win_amd64] + - [ubuntu-latest, musllinux_x86_64] + - [ubuntu-latest, manylinux_aarch64] + - [macos-13, macosx_x86_64] # native Intel hardware + - [windows-latest, win_amd64] python: ["cp38", "cp39", "cp310", "cp311", "cp312"] include: - # Manylinux builds are cheap, do all in one - - { buildplat: ["ubuntu-20.04", "manylinux_x86_64"], python: "*" } + # Manylinux and arm64 builds (on native hardware) are cheap, do all in one + - { buildplat: ["ubuntu-latest", "manylinux_x86_64"], python: "*" } + - { buildplat: ["macos-14", "macosx_arm64"], python: "*" } steps: - uses: actions/checkout@v3 @@ -76,6 +78,13 @@ jobs: - name: Update pip/pipx run: pip install --upgrade pip pipx + # For aarch64 support + # https://cibuildwheel.pypa.io/en/stable/faq/#emulation + - uses: docker/setup-qemu-action@v3 + with: + platforms: all + if: runner.os == 'Linux' && endsWith(matrix.buildplat[1], 'aarch64') + - name: Build wheel(s) run: pipx run --spec "cibuildwheel>=2.15" cibuildwheel env: