Commit 4c57363
committed
fix(ci): aarch64 self-host gate 克隆的是 main,永远看不到被评审的 PR
「Self-host — build mcpp + xlings from source」这一步固定克隆上游 main。于是
这道关卡从来没有验证过 PR 本身:一个会破坏「从源码自举」的改动能顺利通过它,
只在合入之后才炸。
这次是以最刺眼的方式暴露的 —— 上一个 commit 修的正是本仓库的 bootstrap pin,
而那个修复**无法被验证**:修复在分支上,克隆的却是 main,于是 job 继续报
`version '2026.8.4.1' not found`。
PR 上改为自举**被评审的那份代码**;非 PR 场景没有 head ref,main 本来就是对的。
用 fetch-by-sha 而不是 `clone --depth 1`(后者不接受 sha)。1 parent 9e8fb50 commit 4c57363
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
103 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
104 | 121 | | |
105 | 122 | | |
106 | 123 | | |
| |||
0 commit comments