File tree Expand file tree Collapse file tree 1 file changed +25
-6
lines changed
Expand file tree Collapse file tree 1 file changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,31 @@ jobs:
9191 echo "RELEASE=latest" >> $GITHUB_ENV
9292 fi
9393 - name : Install Visual Studio 2026 Build Tools
94- run : |
95- choco install visualstudio2026buildtools `
96- --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --includeRecommended --passive --norestart" `
97- -y
98- shell : powershell
99- timeout-minutes : 30
94+ run : |
95+ $exitCode = 0
96+ choco install visualstudio2026buildtools `
97+ --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --includeRecommended --passive --norestart" `
98+ -y --no-progress
99+
100+ $exitCode = $LASTEXITCODE
101+
102+ # Exit codes: 0 = success, 3010 = success but reboot required
103+ if ($exitCode -eq 0 -or $exitCode -eq 3010) {
104+ Write-Host "VS2026 Installation successful (exit code: $exitCode)"
105+ exit 0
106+ } else {
107+ Write-Host "VS2026 Installation failed (exit code: $exitCode)"
108+ exit $exitCode
109+ }
110+ shell : powershell
111+ timeout-minutes : 30
112+
113+ - name : Verify Installation
114+ run : |
115+ Write-Host "Checking VS2026 installation..."
116+ Get-ChildItem "C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools" -ErrorAction Stop
117+ Write-Host "VS2026 verified successfully"
118+ shell : powershell
100119 - name : Scripts Install
101120 run : ./scripts/vs/install.sh
102121 - name : ' Download artifacts'
You can’t perform that action at this time.
0 commit comments