robotpy / mostrobotpy

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

ci: Use predictable cache keys for ccache #29

Open auscompgeek opened 11 months ago

auscompgeek commented 11 months 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 10 months ago

I feel like this isn't necessary?