Skip to content

Commit 0bbc479

Browse files
Copilotwysaid
andcommitted
Document aka.ms URL usage and exit code 3010 meaning
Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com>
1 parent 02e3d2b commit 0bbc479

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/windows-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ jobs:
243243
Write-Host "Installing Visual Studio 2025 Build Tools Preview..."
244244
245245
# Download VS installer
246-
# Note: This URL points to the preview version. When VS 2025 is officially released,
246+
# Note: Using aka.ms redirect URL per Microsoft's standard distribution method.
247+
# This URL points to the preview version. When VS 2025 is officially released,
247248
# verify and update the URL from Microsoft's official documentation.
248249
# If the URL becomes unavailable, the error handling below will catch it and skip the build.
249250
$installerUrl = "https://aka.ms/vs/18/pre/vs_BuildTools.exe"
@@ -268,6 +269,7 @@ jobs:
268269
269270
$process = Start-Process -FilePath $installerPath -ArgumentList $arguments -Wait -PassThru -NoNewWindow
270271
272+
# Exit codes: 0 = success, 3010 = success with reboot required (common for VS installers)
271273
if ($process.ExitCode -eq 0 -or $process.ExitCode -eq 3010) {
272274
Write-Host "Visual Studio 2025 Build Tools installed successfully"
273275
echo "VS_2025_AVAILABLE=true" >> $env:GITHUB_ENV

0 commit comments

Comments
 (0)