🦃 Use sccache in CI with GHA storage, mac & wasi included#127376
🦃 Use sccache in CI with GHA storage, mac & wasi included#127376gpshead wants to merge 7 commits intopython:mainfrom
Conversation
ccache itself should work fine on macOS already (and Windows!) so configuring that directly should be an option too.
I know that sccache does cache on the full path despite that this is fundamentally a pretty bad idea (and renders it totally useless for scenarios such as speeding up Gentoo compilations) so that may very well be the problem. |
|
I'm not going to finish work on this, others are free to pick it up or figure out the correct modern shape. I assume there is likely room for sccache or similar to properly use a shared cache for a lot of our builds in CI. |
https://github.com/mozilla/sccache from Mozilla is a modern ccache replacement that uses cloud storage such as GHA directly.
If successful, this adds ccache to places we didn't have it before (macOS), and uses GHA storage directly instead of the old ccache based flow of storing a bundle into the GHA cache after the run.
Q: is that an accurate description of how the old ccache flow actually worked?
Windows? it can! That'll take a little more plumbing into its build flow but it should just work.
TODO items