From f8d7b57c190b9f7245adec5a168b49ebee292a36 Mon Sep 17 00:00:00 2001 From: luo jiyin Date: Tue, 22 Sep 2026 10:56:03 +0800 Subject: [PATCH] fix(ci): invoke Win7 sccache stats on PowerShell --- .github/scripts/ci-workflow.test.mjs | 1 + .github/workflows/ci.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/ci-workflow.test.mjs b/.github/scripts/ci-workflow.test.mjs index 61365e04da..986dce858e 100644 --- a/.github/scripts/ci-workflow.test.mjs +++ b/.github/scripts/ci-workflow.test.mjs @@ -141,6 +141,7 @@ test("Windows compatibility jobs cache Rust compilation without wrapping C or C+ 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"', 'CARGO_PROFILE_RELEASE_LTO: "off"', 'CARGO_PROFILE_RELEASE_CODEGEN_UNITS: "8"']) assert.ok(win7.includes(setting)); assert.ok(win7.includes("fc920bf0ec8de6ee65d409111f7ec508035751ba")); assert.ok(win7.includes('version: "v0.16.0"')); + assert.ok(win7.includes("sccache --show-stats")); assert.ok(win7.includes("--timings")); assert.ok(win7.includes("name: DBX-win7-cargo-timings")); assert.ok(win7.includes("path: target/cargo-timings/")); diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 481e29e7b0..b9ae0a9e74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -507,7 +507,7 @@ jobs: - name: Show sccache stats if: always() continue-on-error: true - run: ${SCCACHE_PATH} --show-stats + run: sccache --show-stats - name: Upload Windows 7 test installer uses: actions/upload-artifact@v6