File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -335,25 +335,24 @@ jobs:
335335
336336 make -j$(${{ matrix.nproc_cmd }})
337337
338- - name : Configure and Build (Windows)
338+ - name : Add Python to PATH (Windows)
339339 if : matrix.platform == 'win'
340340 shell : powershell
341341 run : |
342- # Refresh PATH to pick up winget-installed Python
343- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
344-
345- # Add Python to PATH explicitly (winget installs to this location)
342+ # Add winget-installed Python to GitHub Actions PATH
346343 $pythonPath = "$env:LOCALAPPDATA\Programs\Python\Python312"
347344 if (Test-Path $pythonPath) {
348- $env:Path = "$pythonPath;$pythonPath\Scripts;$env:Path"
345+ echo "$pythonPath" >> $env:GITHUB_PATH
346+ echo "$pythonPath\Scripts" >> $env:GITHUB_PATH
347+ Write-Host "Added Python path: $pythonPath"
349348 }
350-
351- # Verify Python is accessible
352- Write-Host "Python location: $(Get-Command python | Select-Object -ExpandProperty Source)"
349+
350+ - name : Configure and Build (Windows)
351+ if : matrix.platform == 'win'
352+ shell : cmd
353+ run : |
353354 python --version
354-
355- # Run vcbuild
356- cmd /c "vcbuild.bat dll x64"
355+ vcbuild.bat dll x64
357356
358357 - name : Package assets
359358 if : startsWith(github.ref, 'refs/tags/')
You can’t perform that action at this time.
0 commit comments