CI: use MSVC Build Tools Insiders on Windows#114
Conversation
Co-authored-by: gdr-at-ms <11031650+gdr-at-ms@users.noreply.github.com>
Co-authored-by: gdr-at-ms <11031650+gdr-at-ms@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: gdr-at-ms <11031650+gdr-at-ms@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot the CI is failing at the VS installation phase. Fix it. |
… and capture exit code Co-authored-by: gdr-at-ms <11031650+gdr-at-ms@users.noreply.github.com>
The installer was failing because PowerShell's |
Both
cmake.ymlandcodeql.ymlcurrently build on Windows using whatever stable MSVC toolchain ships with thewindows-latestrunner. This adds a step to explicitly install and use the Insiders edition of the MSVC Build Tools before CMake configuration.Changes
cmake.yml,codeql.yml): Added a Windows-only step immediately after checkout that downloads the Visual Studio Insiders Build Tools bootstrapper fromhttps://aka.ms/vs/insiders/vs_buildtools.exeand installsMicrosoft.VisualStudio.Workload.VCToolswith recommended components.The installer is launched via
Start-Process -Wait -PassThrurather than PowerShell's&call operator, which ensures the script properly blocks until the full installation completes and reliably captures the exit code from the process object.Exit codes
3010(success + reboot pending) and3015(success + reboot required due to pending file operations) are both treated as success — standard for VS installer in CI. Any other non-zero exit code fails fast with a descriptive error rather than silently falling back to the stable toolchain.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.