@@ -19,40 +19,39 @@ jobs:
1919 - runner : ubuntu-latest
2020 target : x86_64-unknown-linux-gnu
2121 manylinux : auto
22+ interpreter : python3.10 python3.11 python3.12 python3.13
2223 - runner : ubuntu-latest
2324 target : aarch64-unknown-linux-gnu
2425 manylinux : auto
25- - runner : macos-13
26+ interpreter : python3.10 python3.11 python3.12 python3.13
27+ - runner : macos-latest
2628 target : x86_64-apple-darwin
2729 manylinux : ' '
30+ interpreter : python3.10 python3.11 python3.12 python3.13
2831 - runner : macos-14
2932 target : aarch64-apple-darwin
3033 manylinux : ' '
34+ interpreter : python3.10 python3.11 python3.12 python3.13
3135 - runner : windows-latest
3236 target : x86_64-pc-windows-msvc
3337 manylinux : ' '
38+ interpreter : python3.10 python3.11 python3.12 python3.13
3439
3540 steps :
3641 - uses : actions/checkout@v4
3742
38- # Linux: maturin-action builds all Python versions automatically via
39- # the manylinux container (cp310–cp313).
40- # macOS: install multiple interpreters so maturin produces one wheel
41- # per Python version per arch.
43+ # For non-manylinux (macOS, Windows) install multiple Python versions.
44+ # For manylinux, actions/setup-python doesn't affect the containerised
45+ # build — maturin finds Python inside the container via -i.
4246 - uses : actions/setup-python@v5
43- if : ${{ !startsWith( matrix.platform.runner, 'ubuntu') }}
47+ if : ${{ matrix.platform.manylinux == '' }}
4448 with :
4549 python-version : |
4650 3.10
4751 3.11
4852 3.12
4953 3.13
5054
51- - uses : actions/setup-python@v5
52- if : startsWith(matrix.platform.runner, 'ubuntu')
53- with :
54- python-version : ' 3.12'
55-
5655 - name : Build wheels
5756 uses : PyO3/maturin-action@v1
5857 with :
6160 working-directory : sdks/python
6261 args : >-
6362 --release --out dist/
64- ${{ !startsWith( matrix.platform.runner, 'ubuntu') && '-i python3.10 python3.11 python3.12 python3.13' || '' }}
63+ -i ${{ matrix.platform.interpreter }}
6564 sccache : ' true'
6665
6766 - name : Upload wheel artifact
0 commit comments