Skip to content

Commit d1a874d

Browse files
authored
Fix the release workflow (#740)
* Fix the release workflow * Add build of aarch64 wheels for linux
1 parent c2cfe19 commit d1a874d

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

.github/workflows/release.yml

+29-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,26 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v3
2020

21+
- name: Set up rust
22+
uses: dtolnay/rust-toolchain@stable
23+
with:
24+
toolchain: stable
25+
26+
- name: Setup Rust cache
27+
uses: Swatinem/rust-cache@v2
28+
with:
29+
key: ${{ matrix.os }}
30+
31+
- name: Set up QEMU
32+
if: runner.os == 'Linux'
33+
uses: docker/setup-qemu-action@v2
34+
with:
35+
platforms: all
36+
2137
- name: Build wheels
2238
uses: pypa/[email protected]
2339
env:
24-
CIBW_ARCHS_LINUX: x86_64
40+
CIBW_ARCHS_LINUX: auto aarch64
2541
CIBW_ARCHS_MACOS: x86_64
2642
CIBW_ARCHS_WINDOWS: AMD64
2743
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
@@ -44,6 +60,16 @@ jobs:
4460
steps:
4561
- uses: actions/checkout@v3
4662

63+
- name: Set up rust
64+
uses: dtolnay/rust-toolchain@stable
65+
with:
66+
toolchain: stable
67+
68+
- name: Setup Rust cache
69+
uses: Swatinem/rust-cache@v2
70+
with:
71+
key: ${{ matrix.os }}
72+
4773
- name: Build wheels
4874
uses: pypa/[email protected]
4975
env:
@@ -55,8 +81,8 @@ jobs:
5581

5682
- name: Fix wheel tags
5783
run: |
58-
pip install wheel==0.40
59-
wheel tags --platform-tag macosx_12_0_arm64 dist/*-macosx*.whl --remove
84+
python3 -m pip install wheel
85+
python3 -m wheel tags --platform-tag macosx_12_0_arm64 dist/*-macosx*.whl --remove
6086
6187
- uses: actions/upload-artifact@v3
6288
with:

0 commit comments

Comments
 (0)