diff --git a/.github/workflows/build-wheels-push.yml b/.github/workflows/build-wheels-push.yml index 3de692b56c..394ea0987f 100644 --- a/.github/workflows/build-wheels-push.yml +++ b/.github/workflows/build-wheels-push.yml @@ -26,8 +26,10 @@ jobs: buildplat: - [ubuntu-20.04, manylinux_x86_64] - [ubuntu-20.04, manylinux_i686] + - [ubuntu-20.04, manylinux_aarch64] - [ubuntu-20.04, musllinux_x86_64] # No OpenBlas, no test - [ubuntu-20.04, musllinux_i686] + - [ubuntu-20.04, musllinux_aarch64] - [macos-12, macosx_x86_64] - [macos-14, macosx_arm64] - [windows-2019, win_amd64] @@ -36,7 +38,19 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build wheels + - name: Set up QEMU # Required for aarch64 builds + if: ${{ contains(matrix.buildplat[1], 'aarch64') }} + uses: docker/setup-qemu-action@v3 + with: + platforms: all + - 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] }} diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 738c42bcf7..aa658d85a7 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -21,8 +21,10 @@ jobs: buildplat: - [ubuntu-20.04, manylinux_x86_64] - [ubuntu-20.04, manylinux_i686] + - [ubuntu-20.04, manylinux_aarch64] - [ubuntu-20.04, musllinux_x86_64] # No OpenBlas, no test - [ubuntu-20.04, musllinux_i686] + - [ubuntu-20.04, musllinux_aarch64] - [macos-12, macosx_x86_64] - [macos-14, macosx_arm64] - [windows-2019, win_amd64] @@ -31,7 +33,19 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build wheels + - name: Set up QEMU # Required for aarch64 builds + if: ${{ contains(matrix.buildplat[1], 'aarch64') }} + uses: docker/setup-qemu-action@v3 + with: + platforms: all + - 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] }}