稳定AI分支Cargo依赖准备
Project CI / Repository checks (push) Successful in 2m4s
Project CI / Frontend tests (push) Successful in 2m36s
Project CI / Backend tests (push) Successful in 4m23s
Project CI / Native shell tests (push) Failing after 8m52s

在后端测试前有界重试server-rs依赖fetch
在原生门禁前分别准备桌面壳和AI壳Rust依赖
保持测试与编译命令单次执行并继续暴露真实失败
This commit is contained in:
2026-07-22 16:01:12 +08:00
parent 084543621b
commit f92c1a6f43
+38
View File
@@ -152,6 +152,23 @@ jobs:
- name: Check server-rs boundaries
run: npm run check:server-rs-ddd
- name: Prepare server-rs Rust dependencies
shell: bash
run: |
set -euo pipefail
for attempt in $(seq 1 5); do
if cargo fetch --locked \
--target x86_64-unknown-linux-gnu \
--manifest-path server-rs/Cargo.toml; then
break
fi
if [[ "${attempt}" -eq 5 ]]; then
echo 'server-rs Cargo dependency fetch failed after 5 attempts.' >&2
exit 1
fi
sleep $((attempt * 2))
done
- name: Run server-rs workspace tests
run: cargo test --locked --workspace --no-fail-fast --manifest-path server-rs/Cargo.toml
@@ -180,6 +197,27 @@ jobs:
- name: Install AI game creator dependencies
run: npm ci --prefix apps/ai-game-creator-shell
- name: Prepare native Rust dependencies
shell: bash
run: |
set -euo pipefail
for manifest_path in \
apps/desktop-shell/src-tauri/Cargo.toml \
apps/ai-game-creator-shell/src-tauri/Cargo.toml; do
for attempt in $(seq 1 5); do
if cargo fetch --locked \
--target x86_64-unknown-linux-gnu \
--manifest-path "${manifest_path}"; then
break
fi
if [[ "${attempt}" -eq 5 ]]; then
echo "Cargo dependency fetch failed after 5 attempts: ${manifest_path}" >&2
exit 1
fi
sleep $((attempt * 2))
done
done
- name: Run native shell gates
run: npm run check:native-shells