Skip to content

Commit 44814ae

Browse files
committed
Use two step build
1 parent 559fe61 commit 44814ae

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/build-wheels-push.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,17 @@ jobs:
4343
uses: docker/setup-qemu-action@v3
4444
with:
4545
platforms: all
46-
- name: Build wheels
46+
- name: Build wheels (aarch64)
47+
if: ${{ contains(matrix.buildplat[1], 'aarch64') }}
48+
uses: pypa/[email protected]
49+
env:
50+
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
51+
CIBW_ARCHS_LINUX: aarch64
52+
- name: Build wheels (not aarch64)
53+
if: ${{ !contains(matrix.buildplat[1], 'aarch64') }}
4754
uses: pypa/[email protected]
4855
env:
4956
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
50-
CIBW_ARCHS_LINUX: ${{ contains(matrix.buildplat[1], 'aarch64') && 'aarch64' || '' }}
5157
- uses: actions/upload-artifact@v3
5258
with:
5359
path: ./wheelhouse/*.whl

.github/workflows/build-wheels.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,17 @@ jobs:
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] }}
45-
CIBW_ARCHS_LINUX: ${{ contains(matrix.buildplat[1], 'aarch64') && 'aarch64' || '' }}
4652

4753
build_sdist:
4854
name: Build source distribution

0 commit comments

Comments
 (0)