Skip to content

Commit 48a33fb

Browse files
authored
Build wheels for linux-aarch64
This is needed to run dukpy on, say, a Raspberry Pi. See example issue in dknowles2/ha-pitboss#42 Based on directions in https://cibuildwheel.pypa.io/en/stable/faq/#emulation this also needs to set up QEMU for the Linux runner to enable cross-compiles via emulation.
1 parent c711f74 commit 48a33fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-wheels.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,17 @@ jobs:
2424
- name: Install cibuildwheel
2525
run: python -m pip install cibuildwheel==2.16.5
2626

27+
- name: Set up QEMU
28+
if: runner.os == 'Linux'
29+
uses: docker/setup-qemu-action@v3
30+
with:
31+
platforms: all
32+
2733
- name: Build wheels
2834
run: python -m cibuildwheel --output-dir wheelhouse
2935
env:
3036
CIBW_ARCHS_MACOS: "x86_64 arm64"
37+
CIBW_ARCHS_LINUX: "auto aarch64"
3138

3239
- uses: actions/upload-artifact@v2
3340
with:

0 commit comments

Comments
 (0)