mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-19 16:16:45 +00:00
fix(ci): disable sccache for Windows 7 release build
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user