Skip to content

Commit 6ad35cf

Browse files
committed
ci: fix aarch64 cross-compilation by specifying Python interpreters
The cross-compilation Docker container (manylinux2014-cross:aarch64) doesn't have Python interpreters auto-discoverable like native builds. Maturin failed with "Couldn't find any python interpreters". Fix: explicitly specify Python 3.9-3.13 via -i flags for the aarch64 cross-compilation target.
1 parent 4bbd015 commit 6ad35cf

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release-please.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,20 @@ jobs:
4242
strategy:
4343
matrix:
4444
include:
45+
# Native builds - maturin auto-discovers Python interpreters
4546
- os: ubuntu-latest
4647
target: x86_64-unknown-linux-gnu
47-
- os: ubuntu-latest
48-
target: aarch64-unknown-linux-gnu
4948
- os: macos-latest
5049
target: x86_64-apple-darwin
5150
- os: macos-latest
5251
target: aarch64-apple-darwin
5352
- os: windows-latest
5453
target: x86_64-pc-windows-msvc
54+
# Cross-compilation - must specify Python versions explicitly
55+
# (cross containers don't have discoverable Python interpreters)
56+
- os: ubuntu-latest
57+
target: aarch64-unknown-linux-gnu
58+
interpreter: -i python3.9 -i python3.10 -i python3.11 -i python3.12 -i python3.13
5559
runs-on: ${{ matrix.os }}
5660
steps:
5761
- uses: actions/checkout@v4
@@ -61,7 +65,7 @@ jobs:
6165
- uses: PyO3/maturin-action@v1
6266
with:
6367
target: ${{ matrix.target }}
64-
args: --release --out dist
68+
args: --release --out dist ${{ matrix.interpreter }}
6569
manylinux: auto
6670

6771
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)