Skip to content

Commit 91cabb1

Browse files
committed
Refine cibuildwheel for aarch64
1 parent 32a6679 commit 91cabb1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build-wheels.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,18 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v4
3636
- name: Set up QEMU # Required for aarch64 builds
37-
if: matrix.buildplat[1] == 'manylinux_aarch64' || matrix.buildplat[1] == 'musllinux_aarch64'
37+
if: ${{ contains(matrix.buildplat[1], 'aarch64') }}
3838
uses: docker/setup-qemu-action@v3
3939
with:
4040
platforms: all
41-
- name: Build wheels
41+
- name: Build wheels (aarch64)
42+
if: ${{ contains(matrix.buildplat[1], 'aarch64') }}
43+
uses: pypa/[email protected]
44+
env:
45+
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
46+
CIBW_ARCHS_LINUX: aarch64
47+
- name: Build wheels (not aarch64)
48+
if: ${{ !contains(matrix.buildplat[1], 'aarch64') }}
4249
uses: pypa/[email protected]
4350
env:
4451
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}

0 commit comments

Comments
 (0)