Skip to content

Commit cbd87ef

Browse files
committed
ci: enable QEMU when building Python packages for Linux ARM.
1 parent f443992 commit cbd87ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,14 @@ jobs:
154154
pip install maturin==1.7.4
155155
maturin sdist --manifest-path py/Cargo.toml -o wheelhouse
156156
157+
# QEMU is required when building for aarch64.
158+
# https://cibuildwheel.pypa.io/en/stable/faq/#emulation
159+
- name: Set up QEMU
160+
if: matrix.build == 'linux'
161+
uses: docker/setup-qemu-action@v3
162+
with:
163+
platforms: all
164+
157165
- name: Build ${{ matrix.platform || matrix.os }} binaries
158166
run: cibuildwheel --output-dir wheelhouse py
159167
env:

0 commit comments

Comments
 (0)