moonrepo / setup-rust

A maintained GitHub action for setting up Rust and Cargo.
84 stars 6 forks source link

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

Open shrimpyuk opened 5 months ago

shrimpyuk commented 5 months ago

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

milesj commented 5 months ago

@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?