setup-rust icon indicating copy to clipboard operation
setup-rust copied to clipboard

pre and post build cache hashes are different on windows-latest

Open shrimpwtf opened this issue 1 year ago • 1 comments

before build; Attempting to restore cache Generating cache key Cache does not exist using key setup-rustcargo-v1-win32-d94c355bca58aa4c0186140d125e989ab8395e82

after build:

Size changed 1.63 GB => 313.25 MB (-1.32 GB, -80.81%) Cleaning target/release before saving Removing examples and incremental directories Removing dep-info files (*.d) Saving cache with key setup-rustcargo-v1-win32-1dbfb78edf8a75329b6134312e65b3ad0c5c67d8

shrimpwtf avatar Jan 31 '24 17:01 shrimpwtf

@shrimpyuk This is what we use to generate the hash: https://github.com/moonrepo/setup-rust/blob/master/src/cache.ts#L34

Can you run the CI job with debug mode enabled? Maybe the logs will show something.

My other thought is that Cargo.lock is maybe changing?

milesj avatar Feb 02 '24 00:02 milesj