From c529a61d2f75dc7e038802e0e24c861e6c270de8 Mon Sep 17 00:00:00 2001 From: Alban Diquet Date: Fri, 26 Nov 2021 17:56:24 -0800 Subject: [PATCH] Also build manylinux wheels for aarch64 --- .github/workflows/build_wheels.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index b4d0436..ac64646 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -23,6 +23,13 @@ jobs: - name: Install cibuildwheel run: python -m pip install cibuildwheel==1.10.0 + # Needed for Linux aarch64 builds + - name: Set up QEMU + if: runner.os == 'Linux' + uses: docker/setup-qemu-action@v1 + with: + platforms: all + - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse env: @@ -31,8 +38,10 @@ jobs: # Build wheels for Apple Silicon CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" # Build manylinux2014 wheels + CIBW_ARCHS_LINUX: auto aarch64 CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 CIBW_MANYLINUX_I686_IMAGE: manylinux2014 + CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014 # The C libraries (OpenSSL and Zlib) only need to be built once per OS # as they are not tied to a specific Python version CIBW_BEFORE_ALL: "python -m pip install invoke && invoke build.deps"