From d72737556129796880f65c20b8bc44609242fac3 Mon Sep 17 00:00:00 2001 From: wangdequan Date: Mon, 10 Aug 2026 17:07:10 -0400 Subject: [PATCH] ci: fail closed when WASM toolchain paths are missing --- scripts/run-real-verification.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/run-real-verification.mjs b/scripts/run-real-verification.mjs index af455b3..2ee886c 100644 --- a/scripts/run-real-verification.mjs +++ b/scripts/run-real-verification.mjs @@ -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: [