Skip to content

Commit d21f8d5

Browse files
wysaidclaude
andcommitted
ci(windows): fix VS2026 shared-link test vcvars path
The VS2026 shared-library linking test searched for vcvars64.bat under "Microsoft Visual Studio\2026", but VS 2026 installs under a version folder ("Microsoft Visual Studio\18\Enterprise"). The find returned nothing, so the step fell through and exited 1 even though the DLL built fine. Search the whole Visual Studio directory instead, matching the VS2022 linking test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bd4e03c commit d21f8d5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/windows-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,10 @@ jobs:
396396
}
397397
EOF
398398
399-
# Find Visual Studio 2026 compiler
400-
VCVARS_PATH=$(find "/c/Program Files/Microsoft Visual Studio/2026" -name "vcvars64.bat" 2>/dev/null | head -n1)
399+
# Find the Visual Studio compiler. The VS 2026 install lives under a version
400+
# folder ("...\Microsoft Visual Studio\18\..."), not a "2026" year folder, so
401+
# search the whole VS directory rather than hard-coding the name.
402+
VCVARS_PATH=$(find "/c/Program Files/Microsoft Visual Studio" -name "vcvars64.bat" 2>/dev/null | head -n1)
401403
402404
if [ -n "$VCVARS_PATH" ]; then
403405
echo "Using Visual Studio 2026 environment from: $VCVARS_PATH"

0 commit comments

Comments
 (0)