Skip to content

Commit

Permalink
ci(release): also build arm64 wheels (#211)
Browse files Browse the repository at this point in the history
closes #193

Signed-off-by: Luka Peschke <[email protected]>
  • Loading branch information
lukapeschke authored Mar 26, 2024
1 parent efb0ecb commit 7763c14
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
strategy:
matrix:
python-version: ["3.8"]
architecture: [x86-64, aarch64]
steps:
- uses: actions/checkout@v4
- name: build (release)
Expand All @@ -23,14 +24,15 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: "wheels-linux-python-${{ matrix.python-version }}"
name: "wheels-linux-python-${{ matrix.python-version }}-${{ matrix.architecture }}"
path: dist

macos:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.8"]
architecture: [x86-64, aarch64]
steps:
- uses: actions/checkout@v4
- name: build (release)
Expand All @@ -42,13 +44,14 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: "wheels-macos-python-${{ matrix.python-version }}"
name: "wheels-macos-python-${{ matrix.python-version }}-${{ matrix.architecture }}"
path: dist

windows:
runs-on: windows-latest
strategy:
matrix:
# amd64 only for windows, as no arm64 runners are available
python-version: ["3.8"]
steps:
- uses: actions/checkout@v4
Expand All @@ -69,16 +72,28 @@ jobs:
runs-on: ubuntu-latest
needs: [linux, macos]
steps:
- name: Download Linux 3.8 wheels
- name: Download Linux 3.8 wheels for x86-64
uses: actions/download-artifact@v4
with:
name: "wheels-linux-python-3.8"
name: "wheels-linux-python-3.8-x86-64"
path: wheels-linux

- name: Download MacOS 3.8 wheels
- name: Download Linux 3.8 wheels for aarch64
uses: actions/download-artifact@v4
with:
name: "wheels-macos-python-3.8"
name: "wheels-linux-python-3.8-aarch64"
path: wheels-linux

- name: Download MacOS 3.8 wheels for x86-64
uses: actions/download-artifact@v4
with:
name: "wheels-macos-python-3.8-x86-64"
path: wheels-macos

- name: Download MacOS 3.8 wheels for aarch64
uses: actions/download-artifact@v4
with:
name: "wheels-macos-python-3.8-aarch64"
path: wheels-macos

- name: Download Windows 3.8 wheels
Expand Down

0 comments on commit 7763c14

Please sign in to comment.