-
Notifications
You must be signed in to change notification settings - Fork 27
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
Cache system libraries #6
Comments
In the end I was able to do this by using cache@v2 directly with something like this:
With this the build step went from ~2m 10s to ~30 seconds. Feel free to close this or incorporate it to the docs if you think it's worth it. |
Thanks for the request! I don't think that I can do much about this outside of adding to docs. I'm not aware of a way to cache things after the action finishes executing. I think more time can be saved if I have the action detect if the cache folder exists and not download from the cache if it isn't needed. |
It's possible to run something as a post-run step by adding something like
to |
The approach from the README and #6 (comment) does not actually work. If setup-emsdk did not hit the cache, it will use I imagine it worked by accident during testing because |
First of all, thanks a lot for putting this out there; I've started using it today and it worked flawlessly in the first try.
This is not an issue but a feature request. It seems like the cache is being stored at the end of
Run mymindstorm/setup-emsdk@v5
, so system libraries built during the "normal" compilation are not cached.In my test build, generating these libraries take ~1m 40s (out of ~2m). Extract:
Is there any way to setup a post run step to the build (either manually in each job or by adding an option to the action) to get those system libraries to also be cached? As far as I know, these generated system libraries only depend on the emcc version, so caching everything together should be safe.
The text was updated successfully, but these errors were encountered: