Skip to content

Commit 8c37050

Browse files
affandarCopilot
andcommitted
ci: pin manylinux_2_28 and explicitly select python3.12 interpreter
maturin-action@v1 with 'manylinux: auto' started failing with 'Couldn't find any python interpreters from python3' in the docker build environment. Pin to manylinux_2_28 (AlmaLinux 8 based, current upstream default) and explicitly request the cp312 interpreter, plus symlink python3 onto PATH via before-script-linux so maturin's interpreter probe succeeds. Pre-existing issue; surfaced now because our new push/PR triggers run the linux build on every commit, not just on release tags. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4801a76 commit 8c37050

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ jobs:
5050
uses: PyO3/maturin-action@v1
5151
with:
5252
target: ${{ matrix.target }}
53-
args: --release --out dist
54-
manylinux: auto
53+
args: --release --out dist --interpreter python3.12
54+
manylinux: "2_28"
55+
before-script-linux: |
56+
# maturin_2_28 images expose pythons at /opt/python/*/bin but not on PATH
57+
ln -sf /opt/python/cp312-cp312/bin/python3 /usr/local/bin/python3 || true
5558
sccache: "true"
5659
- uses: actions/upload-artifact@v4
5760
with:

0 commit comments

Comments
 (0)