Commit 7909c77
committed
CI: Only save cache on main
Our caches are rather big (nearly all of the total quota). Unless the
cache was built from the default branch, it can only be used from the same
branch as the run that pushed it. This means that we end up pushing lots
of cache that can never be reused, causing the actually useful ones (i.e.
the caches from the default branch) to be evicted due to space.
Fix this by using explicit cache save and restore, and then limiting the
save to only apply on the main branch.
Signed-off-by: Mark Yen <mark.yen@suse.com>1 parent fdda74f commit 7909c77
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments