ci: fail closed when WASM toolchain paths are missing

This commit is contained in:
2026-08-10 17:07:10 -04:00
parent 9d791d53a6
commit d727375561

View File

@@ -21,6 +21,11 @@ const chromeTests = Object.keys(scripts)
const wasmBuilds = process.env.CI_REAL_REBUILD_WASM === '1'
? ['fetch:freecad-source', 'build:occt-history', 'build:planegcs']
: []
if (wasmBuilds.length > 0) {
for (const variable of ['OCCT_SOURCE_DIR', 'EMSDK']) {
if (!process.env[variable]) throw new Error(`CI_REAL_REBUILD_WASM=1 requires ${variable} to be configured.`)
}
}
const lanes = {
chrome: [