From 44814aed30398b2d82ad4dd9067d194698d5ff64 Mon Sep 17 00:00:00 2001 From: Marius Merschformann Date: Sat, 29 Jun 2024 02:08:55 +0200 Subject: [PATCH] Use two step build --- .github/workflows/build-wheels-push.yml | 10 ++++++++-- .github/workflows/build-wheels.yml | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-wheels-push.yml b/.github/workflows/build-wheels-push.yml index dbfa6222fa..394ea0987f 100644 --- a/.github/workflows/build-wheels-push.yml +++ b/.github/workflows/build-wheels-push.yml @@ -43,11 +43,17 @@ jobs: uses: docker/setup-qemu-action@v3 with: platforms: all - - name: Build wheels + - name: Build wheels (aarch64) + if: ${{ contains(matrix.buildplat[1], 'aarch64') }} + uses: pypa/cibuildwheel@v2.19 + env: + CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }} + CIBW_ARCHS_LINUX: aarch64 + - name: Build wheels (not aarch64) + if: ${{ !contains(matrix.buildplat[1], 'aarch64') }} uses: pypa/cibuildwheel@v2.19 env: CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }} - CIBW_ARCHS_LINUX: ${{ contains(matrix.buildplat[1], 'aarch64') && 'aarch64' || '' }} - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 94a2791b34..aa658d85a7 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -38,11 +38,17 @@ jobs: uses: docker/setup-qemu-action@v3 with: platforms: all - - name: Build wheels + - name: Build wheels (aarch64) + if: ${{ contains(matrix.buildplat[1], 'aarch64') }} + uses: pypa/cibuildwheel@v2.19 + env: + CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }} + CIBW_ARCHS_LINUX: aarch64 + - name: Build wheels (not aarch64) + if: ${{ !contains(matrix.buildplat[1], 'aarch64') }} uses: pypa/cibuildwheel@v2.19 env: CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }} - CIBW_ARCHS_LINUX: ${{ contains(matrix.buildplat[1], 'aarch64') && 'aarch64' || '' }} build_sdist: name: Build source distribution