Commit 72e527a
perf(ci): skip rust-cache when S3 sccache is configured
The Swatinem/rust-cache was caching ~10GB and taking 3+ minutes to
extract on runs-on self-hosted runners. Since these runners already
have S3-backed sccache configured via runs-on/action, the rust-cache
was redundant.
This change automatically detects when S3 sccache is configured by
checking for the SCCACHE_BUCKET environment variable (set by
runs-on/action when sccache: s3 is used). When detected, rust-cache
is skipped. Jobs on ubuntu-latest without S3 sccache still benefit
from rust-cache.
Expected improvement: ~3 minutes faster setup-rust on runs-on runners.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Joe Isaacs <[email protected]>1 parent fec90ce commit 72e527a
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
44 | | - | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
0 commit comments