合并(CI红态修复·run4追绿): 检出改纯shell克隆——actions/checkout@v4为JS系动作需node运行时,host模式runner无node即败(run4实证); 作业自带github.token克隆,ci.yml头注立规禁JS系Actions动作
ci / gates (push) Successful in 15s
ci / gates (push) Successful in 15s
This commit is contained in:
commit
19c990b11b
1 file changed
+17
-6
+17
-6
@@ -4,6 +4,9 @@
|
||||
# 跑什么由 tools/ci/domain_route.sh 按改动域分流(乙案)——
|
||||
# 游戏码批=两域全量(含渲染闸);文档批=文档域秒级闸;纯闸件/管线批=零触发。
|
||||
# 运行环境: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 系动作,
|
||||
# 引入新 Actions 前必须确认其执行器形态(shell/composite 可,node/docker 不可)。
|
||||
# 闸清单与域划分唯一出处 = tools/run_all_gates.sh(本文件只负责触发与分流,不另列闸件)。
|
||||
name: ci
|
||||
on:
|
||||
@@ -15,18 +18,25 @@ jobs:
|
||||
runs-on: ci-mac
|
||||
timeout-minutes: 90
|
||||
steps:
|
||||
- name: 检出
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # 域分流需要 base..head 的完整 diff
|
||||
- name: 检出(纯 shell 克隆)
|
||||
env:
|
||||
TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
git clone -q "https://${TOKEN}@git.kuaimeo.com/${GITHUB_REPOSITORY}.git" "$GITHUB_WORKSPACE/repo"
|
||||
cd "$GITHUB_WORKSPACE/repo"
|
||||
git log --oneline -1
|
||||
|
||||
- name: 域分流(乙案)
|
||||
id: route
|
||||
run: bash tools/ci/domain_route.sh "${{ github.event.before }}" "${{ github.sha }}"
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/repo"
|
||||
bash tools/ci/domain_route.sh "${{ github.event.before }}" "${{ github.sha }}"
|
||||
|
||||
- name: 导入缓存刷新(闸前置——.godot 不入 git,冷检出一付)
|
||||
if: steps.route.outputs.mode != 'skip'
|
||||
run: /usr/local/bin/godot --headless --path game --editor --quit
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/repo"
|
||||
/usr/local/bin/godot --headless --path game --editor --quit
|
||||
|
||||
- name: 跑闸
|
||||
if: steps.route.outputs.mode != 'skip'
|
||||
@@ -34,6 +44,7 @@ jobs:
|
||||
GODOT_BIN: /usr/local/bin/godot
|
||||
GDSTYLE_BIN: /usr/local/bin/gdstyle
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/repo"
|
||||
MODE="${{ steps.route.outputs.mode }}"
|
||||
if [ "$MODE" = "full" ]; then ARGS=""; else ARGS="--docs"; fi
|
||||
echo "[ci] 域=$MODE 跑闸参数=$ARGS"
|
||||
|
||||
Reference in new issue
Block a user