From 670de7fd7df6044a2d4dc9aeea077cad5f1a76ad Mon Sep 17 00:00:00 2001 From: Kamil Grabowski Date: Wed, 6 Sep 2023 16:22:59 +0200 Subject: [PATCH] gha: add linux/aarch64 architecture (#30) --- .github/workflows/build.yml | 7 ++++++- pyproject.toml | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 595cbe9..da74604 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,12 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - - run: make requirements c_lib + - run: make requirements + - name: Set up QEMU # Needed to build aarch64 wheels + if: runner.os == 'Linux' + uses: docker/setup-qemu-action@v2 + with: + platforms: all - uses: pypa/cibuildwheel@v2.13.0 - uses: actions/upload-artifact@v3 with: diff --git a/pyproject.toml b/pyproject.toml index 9009b5b..2cde92d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,9 +25,11 @@ build = [ "pp38-*", "pp39-*", ] +before-all = "make c_lib" [tool.cibuildwheel.linux] -archs = ["x86_64"] +archs = ["x86_64", "aarch64"] [tool.cibuildwheel.macos] archs = ["x86_64", "universal2", "arm64"] +environment = { MACOSX_DEPLOYMENT_TARGET="10.15" }