name: build-python
on:
workflow_dispatch: {}
permissions:
contents: read
jobs:
build:
name: wheel (${{ matrix.target }} / py${{ matrix.python }})
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Build wheel
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
manylinux: 2_17
args: --release --no-default-features --features python -i python${{ matrix.python }} --zig
sccache: false
- name: Upload wheel
uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.target }}-py${{ matrix.python }}
path: target/wheels/*.whl