ci: fail closed when WASM toolchain paths are missing
This commit is contained in:
@@ -21,6 +21,11 @@ const chromeTests = Object.keys(scripts)
|
|||||||
const wasmBuilds = process.env.CI_REAL_REBUILD_WASM === '1'
|
const wasmBuilds = process.env.CI_REAL_REBUILD_WASM === '1'
|
||||||
? ['fetch:freecad-source', 'build:occt-history', 'build:planegcs']
|
? ['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 = {
|
const lanes = {
|
||||||
chrome: [
|
chrome: [
|
||||||
|
|||||||
Reference in New Issue
Block a user