Skip to content

CI: Add workflow to build Python wheels #17

CI: Add workflow to build Python wheels

CI: Add workflow to build Python wheels #17

Workflow file for this run

name: Python wheels
on:
- pull_request
- push
- workflow_dispatch
jobs:
wheel:
runs-on: ubuntu-20.04
strategy:
matrix:
target:
# https://quay.io/organization/pypa
- [ manylinux_2_28, x86_64, cp311-cp311 cp312-cp312 ]
- [ manylinux_2_28, aarch64, cp311-cp311 cp312-cp312 ]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build Python wheels
env:
POLICY: ${{ matrix.target[0] }}
ARCH: ${{ matrix.target[1] }}
TAGS: ${{ matrix.target[2] }}
run: |
make manylinux POLICY="$POLICY" ARCH="$ARCH" TAGS="$TAGS"
ls -l wheelhouse
# https://github.com/actions/upload-artifact
- uses: actions/upload-artifact@v4
with:
name: wheels
path: wheelhouse/*.whl
overwrite: ${{ !startsWith(github.ref, 'refs/tags/') }}
# 'warn' or 'ignore' are also available, defaults to `warn`
if-no-files-found: error