Faster CI runs

This commit is contained in:
Fedor Indutny
2025-08-07 10:33:21 -07:00
committed by GitHub
parent 109c3036c9
commit ec8d6a7359
26 changed files with 242 additions and 207 deletions

View File

@@ -61,6 +61,11 @@ const fn = script.runInThisContext({
// See `ts/scripts/generate-preload-cache.ts`
if (process.env.GENERATE_PRELOAD_CACHE) {
// Use hottest cache possible in CI
if (process.env.CI) {
fn(require, __dirname);
window.startApp();
}
writeFileSync(cachePath, script.createCachedData());
ipcRenderer.send('shutdown');
} else {