Skip to content

Commit

Permalink
add aarch64 wheels
Browse files Browse the repository at this point in the history
- enable emulated aarch64 build (fixes #322)
- build aarch64 in parallel as the emulation is quite slow
  • Loading branch information
nijel authored and sirfz committed Oct 9, 2023
1 parent 889f946 commit 10e9e6e
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,37 @@ on:

jobs:
build_wheels:
name: Build wheel for ${{ matrix.config.platform }}
name: Build wheel for ${{ matrix.config.build }}-${{ matrix.config.platform }}

runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- { os: ubuntu-22.04, arch: x86_64, platform: manylinux_x86_64 }
- { os: ubuntu-22.04, arch: x86_64, platform: musllinux_x86_64 }
- { os: macos-12, arch: x86_64, platform: macosx_x86_64 }
- { os: macos-12, arch: arm64, platform: macosx_arm64}
- { os: ubuntu-22.04, arch: x86_64, platform: manylinux_x86_64, build: cp* }
- { os: ubuntu-22.04, arch: aarch64, platform: manylinux_aarch64, build: cp312 }
- { os: ubuntu-22.04, arch: aarch64, platform: manylinux_aarch64, build: cp311 }
- { os: ubuntu-22.04, arch: aarch64, platform: manylinux_aarch64, build: cp310 }
- { os: ubuntu-22.04, arch: aarch64, platform: manylinux_aarch64, build: cp39 }
- { os: ubuntu-22.04, arch: aarch64, platform: manylinux_aarch64, build: cp38 }
- { os: ubuntu-22.04, arch: x86_64, platform: musllinux_x86_64, build: cp* }
- { os: macos-12, arch: x86_64, platform: macosx_x86_64, build: cp* }
- { os: macos-12, arch: arm64, platform: macosx_arm64, build: cp* }

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheel
uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_ARCHS: "${{ matrix.config.arch }}"
CIBW_BUILD: "cp*-${{ matrix.config.platform }}"
CIBW_BUILD: "${{ matrix.config.build }}-${{ matrix.config.platform }}"
CIBW_SKIP: "cp36* cp37*"

- name: Upload Artifacts
Expand Down

0 comments on commit 10e9e6e

Please sign in to comment.