robotpy / mostrobotpy

Official Repository of python implementation of WPILib components
https://robotpy.github.io
Other
11 stars 14 forks source link

ci: Use predictable cache keys for ccache #29

Open auscompgeek opened 1 year ago

auscompgeek commented 1 year ago

Problem: Every build always produced a new ccache cache tarball with a new cache key, regardless of whether a commit caused the compiled output to change.

Solution: Remove the timestamp from the ccache cache keys, and replace it with a hash of (some reasonably useful subset of) the files that dictate the build dependencies. This will prevent builds from pessimistically caching and frequently evicting main caches.

virtuald commented 11 months ago

I feel like this isn't necessary?