Build wheels for linux-aarch64 (#77)

Solves https://github.com/dknowles2/ha-pitboss/issues/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.
This commit is contained in:
David Knowles 2024-03-18 06:45:40 -04:00 committed by GitHub
parent c711f7462d
commit af16ff6cde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -24,10 +24,17 @@ jobs:
- name: Install cibuildwheel - name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.5 run: python -m pip install cibuildwheel==2.16.5
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Build wheels - name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse run: python -m cibuildwheel --output-dir wheelhouse
env: env:
CIBW_ARCHS_MACOS: "x86_64 arm64" CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ARCHS_LINUX: "auto aarch64"
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with: