Skip to content

Conversation

@tpoliaw
Copy link
Collaborator

@tpoliaw tpoliaw commented Oct 3, 2025

Improve CI performance by making cache more effective.

The format check requires a nightly toolchain to support unstable
formatting options but does not need to compile anything - this means
the cache doesn't really affect the runtime and can be skipped.

The clippy job needs to compile the project and therefore needs all the
dependencies available.

The cache uses the version of rust as part of the key so a nightly build
guarantees a cache miss for the first job each day. Using the stable
toolchain for the clippy check allows it to use the same cache from
previous runs reducing the need to download crates twice for each PR.

Improve CI performance by making cache more effective.

The format check requires a nightly toolchain to support unstable
formatting options but does not need to compile anything - this means
the cache doesn't really affect the runtime and can be skipped.

The clippy job needs to compile the project and therefore needs all the
dependencies available.

The cache uses the version of rust as part of the key so a nightly build
guarantees a cache miss for the first job each day. Using the stable
toolchain for the clippy check allows it to use the same cache from
previous runs reducing the need to download crates twice for each PR.
@tpoliaw tpoliaw requested a review from abbiemery October 6, 2025 10:29
@tpoliaw tpoliaw merged commit 08bf8ac into main Oct 15, 2025
9 checks passed
@tpoliaw tpoliaw deleted the cache_fix branch October 15, 2025 14:35
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.

2 participants