From f3a27619db767b042fe40ae701921759009e2ded Mon Sep 17 00:00:00 2001 From: deepend-tildeclub <58404188+deepend-tildeclub@users.noreply.github.com> Date: Thu, 8 Jan 2026 23:32:20 -0700 Subject: [PATCH] Update Python version in Windows build workflow --- .github/workflows/windows-build.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 8bd36ed2..04c71754 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -25,6 +25,11 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.8' + architecture: ${{ matrix.arch }} + - name: Install Dependencies run: | New-Item -Name "deps" -ItemType "Directory" @@ -47,17 +52,17 @@ jobs: Invoke-WebRequest https://github.com/zoitechat/gvsbuild/releases/download/zoitechat-2.17.0/perl-5.20.0-${{ matrix.arch }}.7z -OutFile deps\perl-${{ matrix.arch }}.7z & 7z.exe x deps\perl-${{ matrix.arch }}.7z -oC:\gtk-build\perl-5.20\${{ matrix.platform }} - New-Item -Path "C:\gtk-build\python-3.9" -ItemType Directory -Force | Out-Null + New-Item -Path "C:\gtk-build\python-3.8" -ItemType Directory -Force | Out-Null $pyRoot = $env:pythonLocation if (-not $pyRoot) { $pyRoot = & python -c "import sys; print(sys.prefix)" } - $target = "C:\gtk-build\python-3.9\${{ matrix.platform }}" + $target = "C:\gtk-build\python-3.8\${{ matrix.platform }}" if (Test-Path $target) { Remove-Item $target -Recurse -Force } - New-Item -Path "C:\gtk-build\python-3.9" -Name "${{ matrix.platform }}" -ItemType Junction -Value $pyRoot | Out-Null + New-Item -Path "C:\gtk-build\python-3.8" -Name "${{ matrix.platform }}" -ItemType Junction -Value $pyRoot | Out-Null python -m pip install --upgrade pip python -m pip install cffi @@ -67,9 +72,9 @@ jobs: run: | call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" - set "PYTHON_DIR=C:\gtk-build\python-3.9\${{ matrix.platform }}" - if not exist "%PYTHON_DIR%\libs\python39.lib" ( - echo Missing %PYTHON_DIR%\libs\python39.lib + set "PYTHON_DIR=C:\gtk-build\python-3.8\${{ matrix.platform }}" + if not exist "%PYTHON_DIR%\libs\python38.lib" ( + echo Missing %PYTHON_DIR%\libs\python38.lib dir "%PYTHON_DIR%\libs" exit /b 1 )