-
Notifications
You must be signed in to change notification settings - Fork 26
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
Support caching #12
Comments
@actions/tool-cache
I think this is a GREAT idea 💯 If you need any help doing this let me know 👍 |
Any movement on this? (or is there another avenue for caching?) |
Great - thanks for the quick response. Anything we need to do to take advantage of this (looks like #70 was just merged) or should we expect to see it come downstream soon in latest setup-sam? |
@justinwb It looks like (for now, at least) the |
You can use it right now in - uses: aws-actions/setup-sam@v2
with:
use-installer: true And you can get rid of As @aidansteele mentioned it's disabled by default. We can't easily enable by default in |
Seeing the same - has dropped down to 2-3s on average 🙌 |
With #73 merged, if you have |
Resolving this in favor of the more granular #76 as caching is now supported with |
With #15 merged, at every run all files are stored under a new random temporary directory.
We could use
@actions/tool-cache
to avoid downloading SAM CLI each time. Only really useful for self-hosted runners as they don't have a fresh machine each time.Questions:
actions/cache
? Caches directory as key; needs to know directory; used for caching across runners.@actions/cache
?1.*
) Can't cache1.*
otherwise would never update;tool-cache
doesn't seem to provide solution to invalidate. Would at minimum have to find version installed; anything notpip
seems fragile.The text was updated successfully, but these errors were encountered: