Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action still compile many crates when using cache #199

Open
thewh1teagle opened this issue Jun 4, 2024 · 2 comments
Open

Action still compile many crates when using cache #199

thewh1teagle opened this issue Jun 4, 2024 · 2 comments

Comments

@thewh1teagle
Copy link

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
Copy link

I have the same issue.

@kyledecot
Copy link

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

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

No branches or pull requests

3 participants