-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Support built-in cache #130
Comments
That'd be awesome. For reference, - uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go- A nice start would be to mention this |
It's a bit sad as this is the only https://github.com/marketplace/actions/setup-java-jdk#caching-packages-dependencies https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby#caching-bundle-install-automatically |
Hello everyone. We released the new version of setup-go with caching support and updated major tag. For now I'm going to close the issue if you have any concerns feel free to ping us. |
Hello, I replaced
with the built-in cache, but seems like it's not achieving the same result, as the build time is up to 3-4 minutes form ~40s-1m. I suspect this is because it needs to download the modules instead of using the cached ones, any ideas? EDIT: It might be because I have the setup in different jobs, but the |
Hello @lucacome |
Maybe perhaps this is because there are not "restore-keys", only exact match on primary key? At least this is what I'm trying to understand now |
I always use actions/cache to cache the default location for cache data, and I think this should be a built-in feature of this action, like setup-node supports dependency caching.
The text was updated successfully, but these errors were encountered: