Skip to content

Commit

Permalink
update build_wheel: separate jobs for x86_64 and aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
jfolz committed Aug 10, 2024
1 parent 2f11d2a commit 9f7f2cc
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,26 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-11, windows-2019]
arch: [x86_64]
include:
- os: macos-11
arch: arm64
os: [ubuntu-latest, macos-12, macos-14, windows-2019]
arch: [x86_64, aarch64]
exclude:
- os: macos-12
arch: aarch64
- os: macos-14
arch: x86_64
- os: windows-2019
arch: aarch64
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3.2.0
with:
platforms: all
platforms: arm64
- name: Build wheels
uses: pypa/cibuildwheel@v2.19.1
uses: pypa/cibuildwheel@v2.20.0
env:
CIBW_ARCHS_LINUX: x86_64 aarch64
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ matrix.arch }}
Expand Down

0 comments on commit 9f7f2cc

Please sign in to comment.