rust-lang / rust-lang/rust-clippy
[build] caching on Ubuntu builders of GH actions does nothing
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
See this build log: https://github.com/rust-lang/rust-clippy/pull/6154/checks?check_run_id=1235351421#step:6:1
A solution is to cache only need files and subdirs: https://doc.rust-lang.org/nightly/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci.
We might also want to cache .crates.toml if we use cargo install.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked GitHub Actions build log and the repository's current Ubuntu builder cache configuration. Compare the cached paths with Cargo's CI guidance, including the mentioned .crates.toml if cargo install is used. Done means the workflow caches only useful Cargo files and directories and restores them effectively on later builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, rust
- Domain
- build-system, ci-cd
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100