Install production build toolchain in provision

This commit is contained in:
2026-05-02 22:10:01 +08:00
parent 73d5ef40ed
commit ace13c7047
5 changed files with 38 additions and 3 deletions

View File

@@ -64,6 +64,10 @@ pipeline {
set -euo pipefail
chmod +x scripts/jenkins-prepare-cargo-env.sh
source scripts/jenkins-prepare-cargo-env.sh
if ! command -v clang >/dev/null 2>&1 || ! command -v lld >/dev/null 2>&1; then
echo "[api-build] 缺少 clang/lld。请先运行 Genarrative-Server-Provision 安装 Linux 构建依赖。" >&2
exit 1
fi
if ! command -v sccache >/dev/null 2>&1; then
echo "[api-build] 未找到 sccache改用 rustc 直接构建。"
unset RUSTC_WRAPPER