feat: add self-contained offline development resources
Some checks failed
real-verification / chrome (push) Has been cancelled
real-verification / freecad-oracle (push) Has been cancelled
real-verification / wasm (push) Has been cancelled

This commit is contained in:
2026-08-12 02:36:09 -04:00
parent 97967041e2
commit ca6fe46030
14 changed files with 1102 additions and 12 deletions

View File

@@ -120,7 +120,12 @@ function runScript(name, laneEnvironment = {}) {
console.log(`\n[real-verification] ${name}`)
const result = spawnSync(npmw, ['run', name], {
cwd: root,
env: { ...process.env, CI_REAL_VERIFICATION: '1', ...laneEnvironment },
env: {
...process.env,
CI_REAL_VERIFICATION: '1',
...(process.env.CI_REAL_OFFLINE === '1' ? { npm_config_offline: 'true', FREECAD_SOURCE_OFFLINE: '1' } : {}),
...laneEnvironment,
},
stdio: 'inherit',
})
const record = { script: name, status: result.status ?? 1, durationMs: Date.now() - startedAt }