Repository navigation
Commit e6b10d9
authored
ci: keep the Go build cache current (#3139)
* ci: keep the Go build cache current
actions/setup-go keys its cache on the Go version and go.sum only. The
first job to finish after a new Go release or a go.sum change saves the
entry, and every later run hits that key and skips saving. Master CI is
still restoring the entries saved on 2026-09-11 (Go 1.27.1), so
everything that changed since then recompiles in every run.
Replace it with actions/cache restore/save, keyed per OS, architecture,
Go version and job. Each run restores the newest cache saved for its key
prefix, and runs other than pull requests save a new entry for the
commit, so the cache tracks master. Pull requests only restore, which
keeps the repository's cache storage bounded. A full race build cache
compresses to about 80 MB.
Claude-Session: https://claude.ai/code/session_01QKDYQr53zNKkR7nif2CAAq
* ci: drop Go cache steps from the benchmark job
Since #3140 the benchmark job runs only on pull requests, which never save a
cache, so its restore would always miss.
Claude-Session: https://claude.ai/code/session_01QKDYQr53zNKkR7nif2CAAq1 parent 680772f commit e6b10d9
2 files changed
Lines changed: 76 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
41 | 69 | | |
42 | 70 | | |
43 | 71 | | |
| |||
54 | 82 | | |
55 | 83 | | |
56 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
52 | 80 | | |
53 | 81 | | |
54 | 82 | | |
55 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
56 | 93 | | |
57 | 94 | | |
58 | 95 | | |
| |||
83 | 120 | | |
84 | 121 | | |
85 | 122 | | |
| 123 | + | |
86 | 124 | | |
87 | 125 | | |
88 | 126 | | |
| |||
102 | 140 | | |
103 | 141 | | |
104 | 142 | | |
| 143 | + | |
0 commit comments