You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspect this may speed up other peoples builds too.
Example logic:
What I ended up doing in Github Actions in addition to setup-go, differed a little from the blog post (cache based on Go version dynamically being fetched, plus OS + CPU architecture)
I guess one thing that is different about your alternative example is that it specifies additional restore-keys, which isn't currently supported by this action (see #404). This could impact cache effectiveness (although missed cache hits should be visible in the run logs, I think).
Description:
It doesn't look like
setup-go
caches the Go build cache, only Go modules and other relevant things.To speed up subsequent builds, should the
go-build
directories (OS dependent) also be cached automatically in this action?Some background available in this blog post https://500.keboola.com/in-depth-of-go-build-cache/
Justification:
I had a job that was taking 3+mins for
go test
to start, turns out it was because of how long it took to "build" the tests before executing them.By implementing at least the
actions/cache@v4
parts suggested in https://500.keboola.com/in-depth-of-go-build-cache/ that 3mins became single digit seconds.I suspect this may speed up other peoples builds too.
Example logic:
What I ended up doing in Github Actions in addition to
setup-go
, differed a little from the blog post (cache based on Go version dynamically being fetched, plus OS + CPU architecture)Are you willing to submit a PR?
Not right now - I implemented this in my own actions logic for now :)
The text was updated successfully, but these errors were encountered: