Skip to content

Commit 611781f

Browse files
committed
ci: Build arm64 wheels. Closes #1342
1 parent 53ebcc8 commit 611781f

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/build-and-release.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,35 @@ jobs:
4141
with:
4242
path: ./wheelhouse/*.whl
4343

44+
build_arm64_wheels:
45+
name: Build arm64 wheels
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v4
49+
with:
50+
submodules: "recursive"
51+
52+
- name: Set up QEMU
53+
uses: docker/setup-qemu-action@v3
54+
with:
55+
platforms: linux/arm64
56+
57+
- name: Build wheels
58+
uses: pypa/cibuildwheel@v2.16.5
59+
env:
60+
CIBW_SKIP: "*musllinux* pp*"
61+
CIBW_REPAIR_WHEEL_COMMAND: ""
62+
CIBW_ARCHS: "aarch64"
63+
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*"
64+
with:
65+
output-dir: wheelhouse/
66+
67+
- name: Upload wheels as artifacts
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: wheels-${{ matrix.version }}
71+
path: wheelhouse/*.whl
72+
4473
build_sdist:
4574
name: Build source distribution
4675
runs-on: ubuntu-latest
@@ -65,7 +94,7 @@ jobs:
6594

6695
release:
6796
name: Release
68-
needs: [build_wheels, build_sdist]
97+
needs: [build_wheels, build_arm64_wheels, build_sdist]
6998
runs-on: ubuntu-latest
7099

71100
steps:

0 commit comments

Comments
 (0)