Skip to content

ci: add Swatinem/rust-cache for faster CI builds#8

Merged
sonesuke merged 1 commit intomainfrom
feat/improve-ci-caching
Mar 7, 2026
Merged

ci: add Swatinem/rust-cache for faster CI builds#8
sonesuke merged 1 commit intomainfrom
feat/improve-ci-caching

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

@sonesuke sonesuke commented Mar 7, 2026

Summary

  • Add Swatinem/rust-cache@v2 to CI workflow
  • Cache Rust artifacts (dependencies, build cache) to speed up builds
  • Fix duplicate CI runs by using proper branch filters

Changes

  • ci.yml:
    • Added Swatinem/rust-cache step (replaces manual cache steps)
    • Added --all-targets to clippy for comprehensive checking
    • Added release lint check that only runs on main branch
    • Changed trigger to only run on push to main and on PRs

Benefits

  • Faster CI builds (cached dependencies and build artifacts)
  • Reduced network bandwidth usage
  • Quicker PR feedback
  • No more duplicate CI runs on PRs

🤖 Generated with Claude Code

@sonesuke sonesuke force-pushed the feat/improve-ci-caching branch from c1f65b2 to 6bce57e Compare March 7, 2026 21:41
Add Swatinem/rust-cache@v2 to CI workflow to cache Rust artifacts.
This replaces the manual cargo registry/index/build cache steps with
a more efficient Rust-specific caching solution.

Also:
- Change clippy to use --all-targets flag for comprehensive checking
- Add release lint check that only runs on main branch
- Fix duplicate CI runs by using proper branch filters

Benefits:
- Faster CI builds (cached dependencies and build artifacts)
- Reduced network bandwidth usage
- Quicker PR feedback
- No more duplicate CI runs on PRs

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@sonesuke sonesuke force-pushed the feat/improve-ci-caching branch from 6bce57e to f065550 Compare March 7, 2026 21:42
@sonesuke sonesuke merged commit 9c0d404 into main Mar 7, 2026
4 checks passed
@sonesuke sonesuke deleted the feat/improve-ci-caching branch March 7, 2026 21:49
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