File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,10 +73,13 @@ jobs:
7373 manylinux : manylinux_2_28
7474
7575 # Linux aarch64 — AWS Graviton, Raspberry Pi, etc.
76- # Requires QEMU (set up below) for cross-compilation on the x86_64 runner.
76+ # Cross-compiled on the x86_64 runner using rust-cross container.
77+ # rust-cross/manylinux_2_28-cross has no Python, so PYO3_CROSS_PYTHON_VERSION
78+ # tells PyO3 which version to target without needing a Python binary.
7779 - os : ubuntu-latest
7880 target : aarch64
7981 manylinux : manylinux_2_28
82+ pyo3_cross_python_version : " 3.11"
8083
8184 # macOS Apple Silicon (M1/M2/M3)
8285 # Pin to Python 3.13: macos-latest ships Python 3.14 which PyO3 0.23.x
@@ -132,6 +135,8 @@ jobs:
132135
133136 - name : Build wheels
134137 uses : PyO3/maturin-action@32307a466a178317e8c2ae343b38e73896a047be # v1.47.0
138+ env :
139+ PYO3_CROSS_PYTHON_VERSION : ${{ matrix.pyo3_cross_python_version }}
135140 with :
136141 command : build
137142 args : >-
You can’t perform that action at this time.
0 commit comments