Skip to content

Commit 2d9922b

Browse files
committed
Update nightly.yaml
1 parent afde1ec commit 2d9922b

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/nightly.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ jobs:
1818
- name: Setup NSIS
1919
run: winget install NSIS.NSIS --accept-source-agreements --accept-package-agreements
2020

21-
- name: Initialize MSVC environment
22-
shell: cmd
21+
- name: Install Visual Studio Build Tools
22+
shell: pwsh
2323
run: |
24-
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
25-
echo MSVC environment initialized.
24+
$installerUrl = "https://aka.ms/vs/17/release/vs_buildtools.exe"
25+
$installerPath = Join-Path $env:TEMP "vs_BuildTools.exe"
26+
Invoke-WebRequest -Uri $installerUrl -OutFile $installerPath
27+
Start-Process -FilePath $installerPath -ArgumentList "--quiet", "--wait", "--norestart", "--nocache", `
28+
"--installPath", "C:\BuildTools", `
29+
"--add", "Microsoft.VisualStudio.Workload.VCTools", `
30+
"--add", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", `
31+
"--add", "Microsoft.VisualStudio.Component.Windows10SDK.19041", `
32+
"--version", "17.12.35707.178" `
33+
-Wait -NoNewWindow
2634
2735
- name: Build with build.bat
2836
shell: cmd

0 commit comments

Comments
 (0)