Skip to content

ci: Add caching; no release builds#385

Merged
notpeter merged 7 commits intomainfrom
ci_caching
Mar 16, 2026
Merged

ci: Add caching; no release builds#385
notpeter merged 7 commits intomainfrom
ci_caching

Conversation

@notpeter
Copy link
Contributor

@notpeter notpeter commented Mar 16, 2026

Add caching with swatinem/rust-cache.
Reduces CI iteration cycle for PRs from 4m20s to as little as 2m40s (40% faster).

Switch build.yml (--release builds, 3min15s of CI) to only run on commits to main, not as part of the PR test suite.

There's a high degree to variance in free runner speed so take these numbers with a grain of salt. Swatinem/rust-cache add ~1sec when cache is not available and ~8secs to restore cache. It shaves ~90seconds off cargo build and cargo test --all-features when there is cache available.

File Uncached Cached
build.yml 3m15s 1m40s
test.yml 4m20s 2m40s

@notpeter notpeter self-assigned this Mar 16, 2026
@notpeter notpeter merged commit bc2677c into main Mar 16, 2026
4 checks passed
@notpeter notpeter deleted the ci_caching branch March 16, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant