operator-controller icon indicating copy to clipboard operation
operator-controller copied to clipboard

Improve GitHub actions caching by taking bingo modules into account

Open m1kola opened this issue 1 year ago • 5 comments

Need to add cache-dependency-path configuration option into setup-go GitHub action to improve caching.

Background: we introduced bingo in OLMv1 repos for managing tools and it created a bunch of modules in the .bingo directory in each repo. It works well, but on every job we download these dependencies from internet instead of using cache. This happens becuase setup-go GitHub action only looks into project root for go.sum and builds cache based on it.

cache-dependency-path needs to be added to all OLMv1 repos and it should speed up our builds (we've seen decrease in build time of ~3 minutes in https://github.com/operator-framework/olm-docs).

m1kola avatar Aug 07 '23 13:08 m1kola