ci(windows): require node on runner; add toolchain preflight
build-windows / build-windows-x64 (push) Failing after 1h0m19s
build-windows / build-windows-x64 (push) Failing after 1h0m19s
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user