工程(闸件自检档): 纯闸件/管线批不再零触发——domain_route只含tools/.gitea判gates(空diff仍skip) + run_all_gates新增--gates档(文档域python机检件+熵增+静态扫描+闸壳bash -n自检,不启引擎,判据口径原样) + ci.yml档位映射三值化(full/docs/gates)并排除gates档导入缓存刷新

This commit is contained in:
DKChan committed 2026-11-05 03:47:52 +08:00
1 parent 202fd3d665
commit a20ca0df0b
3 files changed
+78 -21

No files matched your search

+9 -4
View File
@@ -2,7 +2,8 @@
# 触发:master 收到 push(post-merge 钩子合回自动推,或人手推 master)——分支推送不触发
# (开发分支不烧远端引擎时长;分支级验证=开发期手动跑批档)。
# 跑什么由 tools/ci/domain_route.sh 按改动域分流(乙案)——
# 游戏码批=两域全量(含渲染闸);文档批=文档域秒级闸;纯闸件/管线批=零触发。
# 游戏码批=两域全量(含渲染闸);文档批=文档域秒级闸;纯闸件/管线批=闸件自检档
# (run_all_gates.sh --gates:不启引擎的机检面+闸壳自检)。
# 运行环境:Mac host 模式(tools/ci/mac_setup.sh 自举),GODOT_BIN/GDSTYLE_BIN 由自举件安装到位。
# 检出用纯 shell 克隆:host 模式执行 JS 系动作(actions/checkout)需要 node 运行时,
# runner 机器无 node——首跑实证「Cannot find: node in PATH」即败(run 4),本仓禁用 JS 系动作,
@@ -32,8 +33,8 @@ jobs:
cd "$GITHUB_WORKSPACE/repo"
bash tools/ci/domain_route.sh "${{ github.event.before }}" "${{ github.sha }}"
- name: 导入缓存刷新(闸前置——.godot 不入 git,冷检出一付)
if: steps.route.outputs.mode != 'skip'
- name: 导入缓存刷新(闸前置——.godot 不入 git,冷检出一付;gates 档不启引擎,跳过)
if: steps.route.outputs.mode != 'skip' && steps.route.outputs.mode != 'gates'
run: |
cd "$GITHUB_WORKSPACE/repo"
/usr/local/bin/godot --headless --path game --editor --quit
@@ -46,6 +47,10 @@ jobs:
run: |
cd "$GITHUB_WORKSPACE/repo"
MODE="${{ steps.route.outputs.mode }}"
if [ "$MODE" = "full" ]; then ARGS=""; else ARGS="--docs"; fi
case "$MODE" in
full) ARGS="" ;;
gates) ARGS="--gates" ;;
*) ARGS="--docs" ;;
esac
echo "[ci] 域=$MODE 跑闸参数=$ARGS"
bash tools/run_all_gates.sh $ARGS