diff --git a/scripts/build.mjs b/scripts/build.mjs index 945e9301e1..1cf702e3c4 100755 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -101,9 +101,11 @@ async function build(args) { await startGroup("CMake Build", () => spawn("cmake", buildArgs, { env })); - await startGroup("sccache stats", () => { - spawn("sccache", ["--show-stats"], { env }); - }); + if (isCI) { + await startGroup("sccache stats", () => { + spawn("sccache", ["--show-stats"], { env }); + }); + } printDuration("total", Date.now() - startTime); }