From b2e85f14234b60764421799a5df4630e20db4278 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sun, 12 Mar 2023 20:34:02 -0700 Subject: [PATCH] Build aarch64 wheels under emulation (#54) Co-authored-by: messense --- .github/workflows/build_wheels.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index d2e8dc2..cd0cddf 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -30,6 +30,36 @@ jobs: name: dist path: ./wheelhouse/*.whl + build_wheels_aarch64: + name: py${{ matrix.python-version }} on ${{ matrix.os }} (aarch64) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + python-version: [38, 39, 310, 311] + + steps: + - uses: actions/checkout@v3 + + - name: Setup up QEMU + uses: docker/setup-qemu-action@v2 + with: + platforms: arm64 + + - name: Build wheels + uses: pypa/cibuildwheel@v2.11.3 + env: + CIBW_BUILD: "cp${{ matrix.python-version}}-*" + CIBW_ARCHS: aarch64 + CIBW_BUILD_VERBOSITY: 3 + # https://github.com/rust-lang/cargo/issues/10583 + CIBW_ENVIRONMENT_LINUX: PATH="$PATH:$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI=true + - uses: actions/upload-artifact@v3 + with: + name: dist + path: ./wheelhouse/*.whl + build_sdist: name: sdist runs-on: ubuntu-latest