Build with linux on multiple archs
This commit is contained in:
parent
012e1b4e45
commit
4f44fc6757
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue