Commit 78b18ef
ci: improve disk space management on self-hosted Windows runner (#19593)
## Changes
- Move `GOMODCACHE`/`GOCACHE` env vars to job level so all steps share
the same cache paths
- Add **pre-run** `go clean -testcache` (`if: always()`) — ensures tests
run fresh and catches leftovers from cancelled runs
- Add **LFS prune** step after checkout — removes blobs no longer
referenced by the current branch
- Replace old `Cleanup` with **post-run** `go clean -cache` — clears
compiled artifacts after each run to prevent unbounded growth on the
persistent runner
- Post-run cleanup also removes `coverage-test-all.out` and
`$env:RUNNER_TEMP` (previously only `$env:TEMP` was cleaned)1 parent 0e2e5ff commit 78b18ef
1 file changed
+21
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
133 | 137 | | |
134 | 138 | | |
135 | 139 | | |
| |||
147 | 151 | | |
148 | 152 | | |
149 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
150 | 160 | | |
151 | 161 | | |
152 | 162 | | |
| |||
161 | 171 | | |
162 | 172 | | |
163 | 173 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | 174 | | |
168 | 175 | | |
169 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
170 | 181 | | |
| 182 | + | |
171 | 183 | | |
172 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
173 | 188 | | |
174 | 189 | | |
175 | 190 | | |
| |||
0 commit comments