Skip to content

Commit e786fb1

Browse files
abetlenxhedit
authored andcommitted
ci: Build arm64 wheels. Closes abetlen#1342
1 parent bac4538 commit e786fb1

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
@@ -42,6 +42,35 @@ jobs:
4242
with:
4343
path: ./wheelhouse/*.whl
4444

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

6897
release:
6998
name: Release
70-
needs: [build_wheels, build_sdist]
99+
needs: [build_wheels, build_arm64_wheels, build_sdist]
71100
runs-on: ubuntu-latest
72101

73102
steps:

0 commit comments

Comments
 (0)