Skip to content

CI: Add workflow to build Python wheels #22

CI: Add workflow to build Python wheels

CI: Add workflow to build Python wheels #22

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-${{ join(matrix.target, '-') }}
path: wheelhouse/*.whl
# 'warn' or 'ignore' are also available, defaults to `warn`
if-no-files-found: error
merge-artifacts:
name: Download and create one artifact from all jobs
needs: wheel
runs-on: ubuntu-20.04
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: wheels
pattern: wheels-*
merge-multiple: true
- run: ls -R wheels