michael-christen / toolbox

My very own monorepo
https://michael-christen.github.io/toolbox/
MIT License
3 stars 1 forks source link

Setup remote caching with nativelink #68

Closed michael-christen closed 3 months ago

michael-christen commented 3 months ago

Configure build to utilize nativelink's remote cache

https://github.com/tracemachina/nativelink

Seems like on github I'm getting a 23 minute to 7 minute speed boost

image https://github.com/michael-christen/toolbox/actions?query=workflow%3A%22Build+and+Test%22+actor%3Amichael-christen+is%3Asuccess

Also noticed that github's cache was failing since my cache was larger than 2 GB.

The value of "length" is out of range. It must be >= 0 && <= 2147483647.

https://youtrack.jetbrains.com/issue/QD-4368/GitHub-Action-reports-problems-when-downloading-a-cache-greater-than-2-GB https://github.com/actions/cache/releases/tag/v3.0.1

So, I updated the cache action to correct that.

And now we seem to be closer to 2 minutes (1 for retrieving the cache, 51s for going through linting, etc)