ci(win7): enable safe Rust compile caching

This commit is contained in:
luo jiyin authored and GitHub committed 2026-09-20 12:18:04 +08:00
1 parent 8074971399
commit 01bd07bb97
4 files changed
+45 -15

No files matched your search

+7 -2
View File
@@ -122,7 +122,7 @@ test("DuckDB Windows builds persist Rust and C++ compiler results", () => {
assert.ok(content.includes('version: "v0.16.0"'));
});
test("standard Windows compatibility checks run separately with sccache", () => {
test("Windows compatibility jobs cache Rust compilation without wrapping C or C++", () => {
assert.ok(job("changes").includes("'vendor/webview2-com-sys/**'"));
const standard = job("windows-standard-check");
assert.ok(standard.includes("needs.changes.outputs.windows_win7_bundle == 'true'"));
@@ -135,7 +135,12 @@ test("standard Windows compatibility checks run separately with sccache", () =>
assert.ok(standard.includes("sccache --show-stats"));
const win7 = job("windows-win7-bundle");
assert.doesNotMatch(win7, /x86_64-pc-windows-msvc|Setup Rust for standard Windows|RUSTC_WRAPPER: sccache/);
assert.doesNotMatch(win7, /x86_64-pc-windows-msvc|Setup Rust for standard Windows/);
for (const setting of ["RUSTC_WRAPPER: sccache", 'SCCACHE_GHA_ENABLED: "true"',
"SCCACHE_GHA_VERSION: win7-webview2-1.0.902.49-v1", 'SCCACHE_IDLE_TIMEOUT: "0"']) assert.ok(win7.includes(setting));
assert.ok(win7.includes("fc920bf0ec8de6ee65d409111f7ec508035751ba"));
assert.ok(win7.includes('version: "v0.16.0"'));
assert.doesNotMatch(win7, /^\s+(?:CC|CXX):/m);
});
test("the planner uses the exact event base and preserves a single workflow cancellation scope", () => {