From d6365fed8ad29152d3cb2903d5d7df2f77a80d57 Mon Sep 17 00:00:00 2001 From: Joshua Beirer <39070576+jbeirer@users.noreply.github.com> Date: Wed, 12 Mar 2025 11:19:30 +0100 Subject: [PATCH 1/2] Build linux/arm64 wheels --- .github/workflows/distribution.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/distribution.yml b/.github/workflows/distribution.yml index e85ea204b..cef93b6d4 100644 --- a/.github/workflows/distribution.yml +++ b/.github/workflows/distribution.yml @@ -25,28 +25,30 @@ jobs: path: dist/*.tar.gz build_linux_wheels: - name: Wheel on linux - runs-on: ubuntu-latest + name: Wheel on ${{ matrix.os }} strategy: fail-fast: false - + matrix: + os: [ubuntu-latest, ubuntu-24.04-arm] + runs-on: ${{ matrix.os }} + steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - + - name: Get number of CPU cores uses: SimenB/github-actions-cpu-cores@v2 id: cpu-cores - + - uses: pypa/cibuildwheel@v2.22.0 env: MAKEFLAGS: -j${{ steps.cpu-cores.outputs.count }} - - - name: Upload sdist artifact + + - name: Upload wheels artifact uses: actions/upload-artifact@v4 with: - name: linux_wheels + name: linux_wheels_${{ matrix.os }} path: wheelhouse/*.whl build_macos_wheels: From 02ffbc1a47ca8e1e871d514c6e8328967ddeb716 Mon Sep 17 00:00:00 2001 From: Joshua Beirer <39070576+jbeirer@users.noreply.github.com> Date: Wed, 12 Mar 2025 11:26:55 +0100 Subject: [PATCH 2/2] Update distribution.yml --- .github/workflows/distribution.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/distribution.yml b/.github/workflows/distribution.yml index cef93b6d4..f493a2578 100644 --- a/.github/workflows/distribution.yml +++ b/.github/workflows/distribution.yml @@ -25,30 +25,30 @@ jobs: path: dist/*.tar.gz build_linux_wheels: - name: Wheel on ${{ matrix.os }} + name: Wheel on ${{ matrix.arch }} + runs-on: ubuntu-latest strategy: fail-fast: false - matrix: - os: [ubuntu-latest, ubuntu-24.04-arm] - runs-on: ${{ matrix.os }} - + matrix: + arch: [ubuntu-latest, ubuntu-24.04-arm] + steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - + - name: Get number of CPU cores uses: SimenB/github-actions-cpu-cores@v2 id: cpu-cores - + - uses: pypa/cibuildwheel@v2.22.0 env: MAKEFLAGS: -j${{ steps.cpu-cores.outputs.count }} - - - name: Upload wheels artifact + + - name: Upload sdist artifact uses: actions/upload-artifact@v4 with: - name: linux_wheels_${{ matrix.os }} + name: linux_wheels_${{ matrix.arch }} path: wheelhouse/*.whl build_macos_wheels: