Skip to content

Commit

Permalink
ENH: Add aarch64 wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jun 7, 2024
1 parent 88b8541 commit ee38e37
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit ee38e37

Please sign in to comment.