From af16ff6cde57512e7c7b6aacde362c77cf99e2b4 Mon Sep 17 00:00:00 2001 From: David Knowles Date: Mon, 18 Mar 2024 06:45:40 -0400 Subject: [PATCH] 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. --- .github/workflows/build-wheels.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 8a66f7d..31f9c86 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -24,10 +24,17 @@ jobs: - name: Install cibuildwheel 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 run: python -m cibuildwheel --output-dir wheelhouse env: CIBW_ARCHS_MACOS: "x86_64 arm64" + CIBW_ARCHS_LINUX: "auto aarch64" - uses: actions/upload-artifact@v2 with: