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
{{ message }}
Repository navigation
Question: Can we cache the installation folders #212
I have been using setup-cpp and I saw that it takes some time to run on GitHub-hosted environments (Windows and Ubuntu). So, I was wondering if it is possible to cache the installation of the tools I am using (e.g. cmake, ninja, vcpkg, etc..).
Technically, if all the jobs ran under the same OS environment, I don't see a reason why we cannot install the tools once and use them on a matrix configuration multiple times. Now, of course, being new to this, I may be unaware of its possibilities and how to do it. So, I would appreciate any information.
Activity
aminya commentedon Jan 22, 2024
Hi, @pedroo-seaiaa. The installation is cached on GitHub Actions, and on other platforms, the installations are skipped.
Inside GitHub Action, I have not noticed any speedup from caching as the installation is bound by the network and hardware disk, not CPU time.
We can provide prebuilt images via #184 which might speed up the process if you use Docker.