perf(web): reuse incremental build and status caches
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-06 10:27:26 +08:00
parent 1184a51ddf
commit 6090995999
9 changed files with 131 additions and 11 deletions

View File

@@ -40,8 +40,10 @@ if [[ -d /dev/shm && -w /dev/shm ]]; then
else
export EM_CACHE="${EM_CACHE-${web_workspace_root}/.emcache}"
fi
export CMAKE_BUILD_PARALLEL_LEVEL="${CMAKE_BUILD_PARALLEL_LEVEL-8}"
export NINJAFLAGS="${NINJAFLAGS--j8}"
web_build_jobs="$(WEB_BUILD_MEMORY_GIB_PER_JOB=4 WEB_BUILD_JOBS_CAP=16 bash "${web_workspace_root}/tools/web/compute-build-jobs.sh")"
export WEB_BUILD_JOBS="${WEB_BUILD_JOBS-${web_build_jobs}}"
export CMAKE_BUILD_PARALLEL_LEVEL="${CMAKE_BUILD_PARALLEL_LEVEL-${WEB_BUILD_JOBS}}"
export NINJAFLAGS="${NINJAFLAGS--j${WEB_BUILD_JOBS}}"
export WEB_EMSCRIPTEN_CFLAGS="-sENVIRONMENT=web,worker -sMODULARIZE=1 -sEXPORT_ES6=1"
export WEB_EMSCRIPTEN_LDFLAGS="-sALLOW_MEMORY_GROWTH=1 -sFILESYSTEM=1"