Initialize MSVC for Windows package builds

This commit is contained in:
Zheng Liu
2026-06-29 20:18:52 +08:00
parent 90db33c1b4
commit b8bb91ec2e
2 changed files with 15 additions and 0 deletions
+9
View File
@@ -44,3 +44,12 @@ test("build workflow installs bsdtar for Arch pacman packaging", () => {
"both Linux package jobs must install libarchive-tools for pacman metadata generation",
);
});
test("build workflow initializes MSVC before Windows packaging", () => {
const msvcStep = /name:\s*Set up MSVC developer command prompt[\s\S]*?if:\s*matrix\.name == 'windows'[\s\S]*?uses:\s*ilammy\/msvc-dev-cmd@v1[\s\S]*?arch:\s*x64/;
assert.match(
buildWorkflow,
msvcStep,
"Windows package builds must initialize the MSVC developer prompt so cl.exe is available for the Windows Hello helper",
);
});