From f144e660bc98c9116793d3d8b5ad01c59d7419c7 Mon Sep 17 00:00:00 2001 From: joaquin Date: Mon, 31 Aug 2026 14:19:07 +0200 Subject: [PATCH] Deshabilitar setup-python interno de install-qt-action (bug de cache anidado) y usar Python preinstalado via PATH --- .gitea/workflows/windows.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/windows.yml b/.gitea/workflows/windows.yml index 954d72f..c2bedcc 100644 --- a/.gitea/workflows/windows.yml +++ b/.gitea/workflows/windows.yml @@ -51,6 +51,19 @@ jobs: arch: amd64 # ── 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 uses: jurplel/install-qt-action@v4 with: @@ -59,10 +72,7 @@ jobs: target: desktop arch: ${{ env.QT_ARCH }} modules: 'qtserialport qt5compat' - # cache: true da error ("Caching for 'true' is not supported") en este - # 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. + setup-python: false cache: false # ── 3. Cache built dependencies ───────────────────────────────────────