Skip to content

Commit 43f303c

Browse files
committed
Workflow fixes
1 parent 2c0c1a1 commit 43f303c

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

.github/workflows/build-vs2026-x64.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)