diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5371345..efe4d10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,10 +73,13 @@ jobs: manylinux: manylinux_2_28 # Linux aarch64 — AWS Graviton, Raspberry Pi, etc. - # Requires QEMU (set up below) for cross-compilation on the x86_64 runner. + # Cross-compiled on the x86_64 runner using rust-cross container. + # rust-cross/manylinux_2_28-cross has no Python, so PYO3_CROSS_PYTHON_VERSION + # tells PyO3 which version to target without needing a Python binary. - os: ubuntu-latest target: aarch64 manylinux: manylinux_2_28 + pyo3_cross_python_version: "3.11" # macOS Apple Silicon (M1/M2/M3) # Pin to Python 3.13: macos-latest ships Python 3.14 which PyO3 0.23.x @@ -132,6 +135,8 @@ jobs: - name: Build wheels uses: PyO3/maturin-action@32307a466a178317e8c2ae343b38e73896a047be # v1.47.0 + env: + PYO3_CROSS_PYTHON_VERSION: ${{ matrix.pyo3_cross_python_version }} with: command: build args: >-