Commit 82a664e
committed
fix(ci): enable sccache cache saving for all workflows
Both CI and Release workflows had restrictive save-if conditions that
prevented proper cache utilization:
CI issues:
- Cache only saved for main branch, not for any pushes
- Result: PRs and subsequent runs had 0% cache hit rate
- Fix: Save cache for all push events
Release issues:
- Cache only saved for main branch, never for tags
- Result: Every release build started cold (0% cache hit)
- Fix: Save cache for both main and tag pushes
Expected improvements:
- CI builds: ~5x faster after first run
- Release builds: ~5x faster after first release
- Cache hit rates: 0% → 30-50% typical
Technical details:
- rust-cache handles Cargo registry/git deps
- sccache handles compilation artifacts
- Both work together without conflicts when properly configured1 parent 00a5fdb commit 82a664e
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments