Skip to content

[codex] ci: replace hand-rolled cache with Swatinem/rust-cache#516

Merged
hai-rise merged 1 commit into
risechain:mainfrom
Zhekinmaksim:codex/ci-rust-cache
Jun 5, 2026
Merged

[codex] ci: replace hand-rolled cache with Swatinem/rust-cache#516
hai-rise merged 1 commit into
risechain:mainfrom
Zhekinmaksim:codex/ci-rust-cache

Conversation

@Zhekinmaksim

Copy link
Copy Markdown
Contributor

Summary

Replace the hand-rolled Cargo cache step in CI with Swatinem/rust-cache@v2.

Why

The current workflow caches ~/.cargo and ./target against only the Cargo.lock hash, which causes fully cold rebuilds whenever the lockfile changes and keeps stale build artifacts around.

Swatinem/rust-cache uses Rust toolchain and workspace-aware keys, restores more effectively across lockfile changes, and prunes old artifacts to keep cache size under control.

Closes #411.

Validation

This change only updates the GitHub Actions workflow definition. I verified the resulting diff is limited to .github/workflows/ci.yml and replaces the manual actions/cache block with Swatinem/rust-cache@v2.

@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@Zhekinmaksim Zhekinmaksim marked this pull request as ready for review June 5, 2026 09:03
@Zhekinmaksim Zhekinmaksim requested review from a team as code owners June 5, 2026 09:03

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@hai-rise hai-rise left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@hai-rise hai-rise merged commit e94b0e3 into risechain:main Jun 5, 2026
2 checks passed
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.

Improve CI build time

2 participants