Deshabilitar setup-python interno de install-qt-action (bug de cache anidado) y usar Python preinstalado via PATH
Build Fritzing on Windows / build (push) Failing after 39m54s

This commit is contained in:
2026-08-31 14:19:07 +02:00
parent 63702b615d
commit f144e660bc
+14 -4
View File
@@ -51,6 +51,19 @@ jobs:
arch: amd64 arch: amd64
# ── 2. Install Qt ───────────────────────────────────────────────────── # ── 2. Install Qt ─────────────────────────────────────────────────────
# install-qt-action delega en un "Setup Python" interno
# (actions/setup-python@v6) al que este runner de Gitea aplica mal el
# input "cache" de la accion externa, haciendo que actions/setup-python
# reciba un valor booleano donde solo admite 'pip'/'pipenv'/'poetry'
# (error: "Caching for 'X' is not supported"). Se desactiva ese Setup
# Python interno (setup-python: false) y se usa directamente el Python
# 3.13 ya instalado en el runner, anadido al PATH aqui.
- name: Add pre-installed Python to PATH
run: |
echo "C:\gitea-tool-cache\Python\3.13.3\x64" >> $env:GITHUB_PATH
echo "C:\gitea-tool-cache\Python\3.13.3\x64\Scripts" >> $env:GITHUB_PATH
shell: pwsh
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v4 uses: jurplel/install-qt-action@v4
with: with:
@@ -59,10 +72,7 @@ jobs:
target: desktop target: desktop
arch: ${{ env.QT_ARCH }} arch: ${{ env.QT_ARCH }}
modules: 'qtserialport qt5compat' modules: 'qtserialport qt5compat'
# cache: true da error ("Caching for 'true' is not supported") en este setup-python: false
# runner: install-qt-action reenvia mal ese valor a la accion interna
# actions/setup-python. Se desactiva; el propio paso "Cache dependencies"
# de este workflow ya cachea el resto de dependencias compiladas.
cache: false cache: false
# ── 3. Cache built dependencies ─────────────────────────────────────── # ── 3. Cache built dependencies ───────────────────────────────────────