Make production builds bootstrap agent dependencies

This commit is contained in:
2026-05-02 20:42:47 +08:00
parent 7160e90909
commit d48916157b
5 changed files with 13 additions and 1 deletions

View File

@@ -63,6 +63,10 @@ pipeline {
bash -lc '
set -euo pipefail
mkdir -p "${CARGO_HOME}" "${CARGO_TARGET_DIR}" "${SCCACHE_DIR}"
if ! command -v sccache >/dev/null 2>&1; then
echo "[api-build] 未找到 sccache改用 rustc 直接构建。"
unset RUSTC_WRAPPER
fi
SOURCE_BRANCH="${SOURCE_BRANCH}" SOURCE_COMMIT="${SOURCE_COMMIT}" \
npm run build:production-release -- --component api-server --name "${EFFECTIVE_BUILD_VERSION}"
'