-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
crates installed for CI dependencies aren't cached #134
Comments
Would be simple to add an option to override the default behaviour, if this is a correct analysis? If so I can put together a PR. |
Reading through the code that generates the lock key it does seem that the contents of the bin directory isn't considered just One workaround could be to customise What about adding the output from |
@stevenh For check-dependencies:
name: Check Unused Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
src:
- 'Cargo.lock'
- name: Install cargo-udeps
if: steps.filter.outputs.src == 'true'
uses: taiki-e/install-action@cargo-udeps
- if: steps.filter.outputs.src == 'true'
run: cargo udeps |
Ooo thanks for sharing that @Boshen nice! |
If the workflow includes the install of additional cargo crates for example the install of
cargo-udeps
to validate that unused dependencies don't exist inCargo.toml
the depencent crates for the install don't appear to be cached, resulting in extended workflow build times.In our case we're seeing over 11mins added to some builds due to this missing items.
It seems like these tool dependencies are been explicitly cleaned out before the cache is persisted?
Another related issue seems to be the key might not be taking into account items in the bin directory. If this is the case when the workflow changes to install additional tools the cache doesn't include them forcing rebuilds until the old cache expires.
The text was updated successfully, but these errors were encountered: