From 4f44fc67576bd0ad5d503bb94bbb4c313de07ed5 Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Mon, 26 Feb 2024 10:18:37 -0600 Subject: [PATCH] Build with linux on multiple archs --- .github/workflows/python-release.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index 94893c6..1cc49ae 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -9,6 +9,7 @@ on: - main jobs: + build-wheels: name: Build wheels for ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -24,11 +25,20 @@ jobs: with: submodules: recursive + - name: Setup QEMU + if: runner.os == 'Linux' + uses: docker/setup-qemu-action@v3 + with: + platforms: all + - name: Build CKZG working-directory: src run: make - - uses: actions/setup-python@v4 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' - name: Install cibuildwheel run: python -m pip install cibuildwheel==2.16.5 @@ -36,10 +46,11 @@ jobs: - name: Build wheels working-directory: bindings/python run: python -m cibuildwheel --output-dir wheelhouse + env: + CIBW_ARCHS_LINUX: auto aarch64 - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - working-directory: bindings/python with: password: ${{ secrets.PYPI_PASSWORD }} - packages-dir: wheelhouse + packages-dir: bindings/python/wheelhouse