1010 - " Core/**"
1111 - " EngineLoader/**"
1212 - " ENGINES/**"
13+ - " OnlyMod/**"
14+ - " bcasl/**"
15+ - " Plugins/**"
16+ - " Plugins_SDK/**"
17+ - " requirements.txt"
18+ - " .github/workflows/ark-self-build.yml"
19+ pull_request :
20+ branches : [main, develop, develop2]
21+ paths :
22+ - " pycompiler_ark.py"
23+ - " cli/**"
24+ - " Core/**"
25+ - " EngineLoader/**"
26+ - " ENGINES/**"
27+ - " OnlyMod/**"
28+ - " bcasl/**"
29+ - " Plugins/**"
30+ - " Plugins_SDK/**"
1331 - " requirements.txt"
1432 - " .github/workflows/ark-self-build.yml"
1533
@@ -37,10 +55,13 @@ jobs:
3755 - name : Install runtime dependencies
3856 run : python -m pip install -r requirements.txt
3957
40- - name : Install build engine dependencies (nuitka)
58+ - name : Install system tools for CI precheck + Nuitka
4159 run : |
4260 sudo apt-get update
43- sudo apt-get install -y patchelf
61+ sudo apt-get install -y patchelf cloc
62+
63+ - name : Install build engine dependencies (Nuitka)
64+ run : |
4465 python -m pip install nuitka
4566
4667 - name : ARK self-build pipeline
@@ -54,12 +75,27 @@ jobs:
5475
5576 mkdir -p "$REPORT_DIR"
5677
78+ echo "[1/7] init workspace"
5779 $ARK_BIN init "$WORKSPACE_DIR" --with-venv --json > "$REPORT_DIR/init.json"
80+
81+ echo "[2/7] auto-config entrypoint"
5882 $ARK_BIN cfg-auto "$WORKSPACE_DIR" --entrypoint "pycompiler_ark.py" --json > "$REPORT_DIR/cfg_auto.json"
83+
84+ echo "[3/7] strict precheck (fail-fast)"
5985 $ARK_BIN check "$WORKSPACE_DIR" --json --strict > "$REPORT_DIR/check.json"
86+
87+ echo "[4/7] target engine info"
6088 $ARK_BIN engine info nuitka --workspace "$WORKSPACE_DIR" --json > "$REPORT_DIR/engine_info.json"
89+
90+ echo "[5/7] optional doctor snapshot"
91+ $ARK_BIN doctor --json > "$REPORT_DIR/doctor.json"
92+
93+ echo "[6/7] self-build using ARK -> Nuitka"
6194 $ARK_BIN engine compile nuitka "$ENTRYPOINT_FILE" --workspace "$WORKSPACE_DIR" --json > "$REPORT_DIR/build_result.json"
6295
96+ echo "[7/7] post-build workspace snapshot"
97+ $ARK_BIN workspace inspect "$WORKSPACE_DIR" --json > "$REPORT_DIR/workspace_inspect.json"
98+
6399 - name : Collect artifacts
64100 if : always()
65101 shell : bash
0 commit comments