From 8a0d37c56cde98aab63366d20dd0d8c6725a9f2f Mon Sep 17 00:00:00 2001 From: Philipp Kats Date: Wed, 17 Jun 2026 17:35:17 -0400 Subject: [PATCH 1/2] fixing build for arm64 --- .github/workflows/pre-release.yml | 6 ++++++ .github/workflows/release.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index c012c98..2134f99 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -53,6 +53,12 @@ jobs: with: submodules: recursive + - name: Set up QEMU + if: runner.os == 'Linux' + uses: docker/setup-qemu-action@v3 + with: + platforms: arm64 + - name: Build wheels uses: pypa/cibuildwheel@v2.23.2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22a6a73..bfcab6e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,6 +56,12 @@ jobs: with: submodules: recursive + - name: Set up QEMU + if: runner.os == 'Linux' + uses: docker/setup-qemu-action@v3 + with: + platforms: arm64 + - name: Build wheels uses: pypa/cibuildwheel@v2.23.2 From f1f25539ab8d2898a2f07cd6c55e5d0ccff7c8fa Mon Sep 17 00:00:00 2001 From: Philipp Kats Date: Wed, 17 Jun 2026 17:37:23 -0400 Subject: [PATCH 2/2] setting up arn build --- .github/workflows/pre-release.yml | 20 ++++++++++++-------- .github/workflows/release.yml | 20 ++++++++++++-------- pyproject.toml | 9 --------- 3 files changed, 24 insertions(+), 25 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 2134f99..2b11a6a 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -45,7 +45,15 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + include: + - os: ubuntu-latest + archs: x86_64 + - os: ubuntu-24.04-arm + archs: aarch64 + - os: windows-latest + archs: AMD64 + - os: macos-latest + archs: x86_64 arm64 steps: - name: Checkout repository @@ -53,19 +61,15 @@ jobs: with: submodules: recursive - - name: Set up QEMU - if: runner.os == 'Linux' - uses: docker/setup-qemu-action@v3 - with: - platforms: arm64 - - name: Build wheels uses: pypa/cibuildwheel@v2.23.2 + env: + CIBW_ARCHS: ${{ matrix.archs }} - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels-${{ matrix.os }} + name: wheels-${{ matrix.os }}-${{ matrix.archs }} path: wheelhouse/*.whl gather_n_publish: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bfcab6e..f0381c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,7 +48,15 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + include: + - os: ubuntu-latest + archs: x86_64 + - os: ubuntu-24.04-arm + archs: aarch64 + - os: windows-latest + archs: AMD64 + - os: macos-latest + archs: x86_64 arm64 steps: - name: Checkout repository @@ -56,19 +64,15 @@ jobs: with: submodules: recursive - - name: Set up QEMU - if: runner.os == 'Linux' - uses: docker/setup-qemu-action@v3 - with: - platforms: arm64 - - name: Build wheels uses: pypa/cibuildwheel@v2.23.2 + env: + CIBW_ARCHS: ${{ matrix.archs }} - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels-${{ matrix.os }} + name: wheels-${{ matrix.os }}-${{ matrix.archs }} path: wheelhouse/*.whl gather_n_publish: diff --git a/pyproject.toml b/pyproject.toml index 2e30b9f..e3fb43f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,12 +78,3 @@ testpaths = ["tests"] build = "cp39-* cp310-* cp311-* cp312-* cp313-*" skip = "*-musllinux_*" build-frontend = "build" - -[tool.cibuildwheel.linux] -archs = ["x86_64", "aarch64"] - -[tool.cibuildwheel.macos] -archs = ["x86_64", "arm64"] - -[tool.cibuildwheel.windows] -archs = ["AMD64"]