ci(windows): require node on runner; add toolchain preflight
build-windows / build-windows-x64 (push) Failing after 1h0m19s

This commit is contained in:
2026-05-04 18:51:25 +02:00
parent e1ca674a54
commit a99aeb843f
2 changed files with 24 additions and 8 deletions
+5 -1
View File
@@ -47,10 +47,14 @@ if (-not (Get-Command choco -ErrorAction SilentlyContinue)) {
}
Write-Host '==> Installing base packages'
choco install -y --no-progress git python311 nuget.commandline 7zip cmake ninja
# nodejs-lts: act_runner needs node to execute JavaScript actions.
# powershell-core: workflows commonly use `shell: pwsh` (PS 7), not the OS's PS 5.1.
choco install -y --no-progress git python311 nuget.commandline 7zip cmake ninja nodejs-lts powershell-core
Add-MachinePath 'C:\Program Files\Git\cmd'
Add-MachinePath 'C:\Python311'
Add-MachinePath 'C:\Python311\Scripts'
Add-MachinePath 'C:\Program Files\nodejs'
Add-MachinePath 'C:\Program Files\PowerShell\7'
# --- 2. Visual Studio 2022 Build Tools (MSVC v143 + Win10 SDK) ---
$vsInstaller = "$env:ProgramFiles(x86)\Microsoft Visual Studio\Installer\vswhere.exe"