Commit 9587b67
committed
fix(ci): skip cache restore when force rebuild is requested
Add 'if: inputs.force != true' condition to cache restore steps to
ensure --force flag actually rebuilds from scratch instead of using
cached artifacts.
Current behavior (broken):
- Cache restore steps always run
- Cache hits prevent rebuilds
- Force flag only affects build conditions (too late)
Fixed behavior:
- Cache restore skipped when inputs.force = true
- Builds run from scratch
- No cache hits to prevent rebuild
Changes:
- build-sea.yml: Skip SEA binary cache restore on force
- build-smol.yml: Skip build/stripped/binary cache restores on force
Note: ccache and WASM caches still restore (desired for speed).1 parent 1877bb1 commit 9587b67
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| 112 | + | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
0 commit comments