Swatinem / rust-cache

A GitHub Action that implements smart caching for rust/cargo projects
GNU Lesser General Public License v3.0
1.2k stars 98 forks source link

Action still compile many crates when using cache #199

Open thewh1teagle opened 1 month ago

thewh1teagle commented 1 month ago

I use rust-cache in Github action to make Rust build faster. Although it restore previous cache, when I run cargo build it still build many crates and not only main.

Workflow file: release_older_cpu.yml

Fresh cache creation (after clean cache) run: job/25785939435

Using cache few minutes later: runs/9367351434

RobinWragg commented 3 weeks ago

I have the same issue.

kyledecot commented 1 week ago

I'm also experiencing this issue. My private repo is split up into multiple crates however despite providing the cache-all-crates option am getting No cache found.

- uses: Swatinem/rust-cache@v2
  with:
    cache-all-crates: true