Build with linux on multiple archs

This commit is contained in:
Justin Traglia 2024-02-26 10:18:37 -06:00
parent 012e1b4e45
commit 4f44fc6757
1 changed files with 14 additions and 3 deletions

View File

@ -9,6 +9,7 @@ on:
- main - main
jobs: jobs:
build-wheels:
name: Build wheels for ${{ matrix.os }} name: Build wheels for ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
@ -24,11 +25,20 @@ jobs:
with: with:
submodules: recursive submodules: recursive
- name: Setup QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Build CKZG - name: Build CKZG
working-directory: src working-directory: src
run: make run: make
- uses: actions/setup-python@v4 - name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install cibuildwheel - name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.5 run: python -m pip install cibuildwheel==2.16.5
@ -36,10 +46,11 @@ jobs:
- name: Build wheels - name: Build wheels
working-directory: bindings/python working-directory: bindings/python
run: python -m cibuildwheel --output-dir wheelhouse run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS_LINUX: auto aarch64
- name: Publish to PyPI - name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
working-directory: bindings/python
with: with:
password: ${{ secrets.PYPI_PASSWORD }} password: ${{ secrets.PYPI_PASSWORD }}
packages-dir: wheelhouse packages-dir: bindings/python/wheelhouse