From ca8c31f4ed6b93b2f55039f02767d5beeb70eb9f Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Wed, 5 Mar 2025 09:42:32 -0800 Subject: [PATCH 1/2] Use GitHub arm runner --- .github/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e1a550b..5120501 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [macos-13, macos-14, ubuntu-latest, windows-latest] + os: [macos-13, macos-14, ubuntu-24.04-arm, ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v4 @@ -27,7 +27,7 @@ jobs: persist-credentials: false - name: Set up QEMU - if: runner.os == 'Linux' + if: runner.os == 'Linux' && runner.arch == 'X64' uses: docker/setup-qemu-action@v3 with: platforms: all @@ -37,9 +37,10 @@ jobs: env: CIBW_BUILD_VERBOSITY: 1 MAXMINDDB_REQUIRE_EXTENSION: 1 - # configure cibuildwheel to build native archs ('auto'), and some - # emulated ones - CIBW_ARCHS_LINUX: auto aarch64 + # configure cibuildwheel on Linux to build native archs ('auto'), + # and to split the remaining architectures between the x86_64 and + # ARM runners + CIBW_ARCHS_LINUX: ${{ runner.arch == 'X64' && 'auto ppc64le s390x' || 'auto' }} - uses: actions/upload-artifact@v4 with: From d1bce5d77176233b21c75a63a0fc3d5f39991a9c Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Wed, 5 Mar 2025 09:45:08 -0800 Subject: [PATCH 2/2] Test on arm runner --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 500d20c..da81d0b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - platform: [macos-latest, ubuntu-latest, windows-latest] + platform: [macos-latest, ubuntu-24.04-arm, ubuntu-latest, windows-latest] python-version: [3.8, 3.9, "3.10", 3.11, 3.12, 3.13] name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}