fix(ci): disable sccache for Windows 7 release build

This commit is contained in:
github-actions[bot]
2026-08-26 03:54:19 +08:00
parent 43c896053b
commit 8bcbfd7ae7
2 changed files with 12 additions and 37 deletions
+12
View File
@@ -7,6 +7,7 @@ import test from "node:test";
const repoRoot = new URL("..", import.meta.url).pathname;
const releaseScript = join(repoRoot, "scripts/release.mjs");
const releaseWorkflow = join(repoRoot, ".github/workflows/release.yml");
const packagesWorkflow = join(repoRoot, ".github/workflows/mcp-release.yml");
const vsignConfigPath = join(repoRoot, "src-tauri/tauri.vsign.conf.json");
@@ -123,3 +124,14 @@ test("Tauri VSign script resolves from the src-tauri working directory", () => {
assert.equal(typeof scriptPath, "string");
assert.equal(existsSync(resolve(repoRoot, "src-tauri", scriptPath)), true);
});
test("Windows 7 release build does not use sccache", () => {
const workflow = readFileSync(releaseWorkflow, "utf8");
const start = workflow.indexOf(" build-windows-7-offline:");
const end = workflow.indexOf("\n static-browser:", start);
assert.notEqual(start, -1);
assert.notEqual(end, -1);
const win7Job = workflow.slice(start, end);
assert.doesNotMatch(win7Job, /RUSTC_WRAPPER|SCCACHE_|sccache/i);
});