ci: 新增 Windows 桌面端内测构建

This commit is contained in:
Cheng Zhou
2026-07-09 09:30:44 +08:00
parent 0aff10fe0d
commit b03e30d0dd
5 changed files with 181 additions and 0 deletions
@@ -308,6 +308,45 @@ const verifyWorkflowGates = async () => {
for (const token of requiredReleaseWorkflowTokens) {
assert(releaseWorkflow.includes(token), `Desktop release candidate workflow must include ${token}.`);
}
const windowsInternalWorkflow = await readFile(resolve(rootDir, ".github/workflows/desktop-windows-internal.yml"), "utf8");
const requiredWindowsInternalWorkflowTokens = [
"workflow_dispatch",
"runs-on: windows-latest",
"VITE_BUILD_CHANNEL",
"VITE_BUILD_COMMIT",
"npm run release:env:check",
"npm run version:check",
"npm run runtime:check",
"npm run desktop:release:check",
"npm run ui:contract",
"npm run type-check",
"npm run test:unit",
"npm run build",
"npm run desktop:build",
"createUpdaterArtifacts",
"false",
"--bundles nsis",
"SHA256SUMS.txt",
"actions/upload-artifact",
];
for (const token of requiredWindowsInternalWorkflowTokens) {
assert(windowsInternalWorkflow.includes(token), `Desktop Windows internal workflow must include ${token}.`);
}
const forbiddenWindowsInternalWorkflowTokens = [
"desktop:update-feed:create",
"desktop:update-feed:check",
"desktop:release-readiness:check",
"TAURI_SIGNING_PRIVATE_KEY",
"REQUIRE_DESKTOP_SIGNING",
"latest.json",
];
for (const token of forbiddenWindowsInternalWorkflowTokens) {
assert(!windowsInternalWorkflow.includes(token), `Desktop Windows internal workflow must not include ${token}.`);
}
};
await verifyTauriConfig();