Commit b74272e
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.
Additional optimizations:
- Remove redundant VS Build Tools install on Windows (already pre-installed
in windows22-full-x64 image) - saves ~4 minutes
- Add --threads $(nproc) to grcov for explicit max parallelization
Expected improvement: ~3-4 minutes faster setup-rust on runs-on runners,
~4 minutes faster Windows job.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Joe Isaacs <[email protected]>1 parent 72e527a commit b74272e
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
| |||
429 | 430 | | |
430 | 431 | | |
431 | 432 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
| 433 | + | |
| 434 | + | |
437 | 435 | | |
438 | 436 | | |
439 | 437 | | |
| |||
0 commit comments