Pin uv-managed Python 3.12 in CI for PyInstaller
CI / check (push) Successful in 6s
CI / release (push) Failing after 5s

The runner's system CPython is built without a shared libpython3.x.so,
which PyInstaller --onefile requires. setup-uv's python-version input
makes uv provision its managed CPython, which ships the shared library.
This commit is contained in:
2026-08-25 20:39:00 +02:00
parent 8eadf64a2f
commit b41f0f509e
+8
View File
@@ -12,6 +12,10 @@ jobs:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
# Pin uv's managed CPython: the runner's system python lacks
# libpython3.x.so, which PyInstaller needs for --onefile builds.
python-version: "3.12"
- name: Install dependencies
run: uv sync --frozen
@@ -35,6 +39,10 @@ jobs:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
# Pin uv's managed CPython: the runner's system python lacks
# libpython3.x.so, which PyInstaller needs for --onefile builds.
python-version: "3.12"
- name: Install dependencies
run: uv sync --frozen --group build