Skip to content

CI: find vcvarsall.bat with vswhere - #407

Merged
davidchisnall merged 1 commit into
gnustep:masterfrom
DTW-Thalion:ci/locate-visual-studio
Aug 8, 2026
Merged

CI: find vcvarsall.bat with vswhere#407
davidchisnall merged 1 commit into
gnustep:masterfrom
DTW-Thalion:ci/locate-visual-studio

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

The windows jobs have failed since the runner image moved to Visual
Studio 2026. The matrix names C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build,
and the first step's dir on that path reports "The system cannot find the path
specified", so the job stops before checkout. The same jobs fail the same way
on master.

The install on windows-2025 is now under C:\Program Files\Microsoft Visual
Studio\18\Enterprise. Rather than name that path, the first step asks vswhere
for the latest installation carrying the C++ tools and writes its vcvarsall.bat
to the environment; Configure CMake and Build call it from there. vswhere sits
at a fixed location under Program Files (x86) on every Windows runner image.
The step stops with a message if there is no such installation, or if
vcvarsall.bat is not where it says.

Verified on a run of this branch: every windows job found the install under
C:\Program Files\Microsoft Visual Studio\18\Enterprise, configured, built,
and passed 106 of 106 tests.

The windows jobs named the Visual Studio 2022 Enterprise install path
directly. The windows-2025 runner image now carries Visual Studio 2026,
so that path is not there and all four MSVC jobs fail at the first step
with "The system cannot find the path specified".

vswhere reports the installation that has the C++ tools, whatever
version of Visual Studio the image was built with.
@davidchisnall
davidchisnall merged commit b1e2cca into gnustep:master Aug 8, 2026
91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants