Skip to content

Commit 7b2b0d0

Browse files
committed
fix(ci): disable compile cache for cross-os upgrades
1 parent 7a5638e commit 7b2b0d0

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/openclaw-cross-os-release-checks.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,8 +1219,12 @@ export function shouldSkipInstallerDaemonHealthCheck(platform = process.platform
12191219
}
12201220

12211221
export function buildRealUpdateEnv(env) {
1222-
const updateEnv = { ...env };
1222+
const updateEnv = {
1223+
...env,
1224+
NODE_DISABLE_COMPILE_CACHE: "1",
1225+
};
12231226
delete updateEnv.OPENCLAW_DISABLE_BUNDLED_PLUGIN_POSTINSTALL;
1227+
delete updateEnv.NODE_COMPILE_CACHE;
12241228
return updateEnv;
12251229
}
12261230

test/scripts/openclaw-cross-os-release-checks.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,12 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
499499
expect(
500500
buildRealUpdateEnv({
501501
FOO: "bar",
502+
NODE_COMPILE_CACHE: "/tmp/stale-openclaw-cache",
502503
OPENCLAW_DISABLE_BUNDLED_PLUGIN_POSTINSTALL: "1",
503504
}),
504505
).toEqual({
505506
FOO: "bar",
507+
NODE_DISABLE_COMPILE_CACHE: "1",
506508
});
507509
});
508510

0 commit comments

Comments
 (0)