setup-cpp icon indicating copy to clipboard operation
setup-cpp copied to clipboard

Question: Can we cache the installation folders

Open pedroo-seaiaa opened this issue 1 year ago • 1 comments

Hello,

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.

Kind regards,

PS: Sorry to open an issue for a question.

Upvote & Fund

  • I am using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

  • Thank you in advance for helping prioritize & fund our backlog.

Fund with Polar

pedroo-seaiaa avatar Dec 19 '23 00:12 pedroo-seaiaa

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.

aminya avatar Jan 22 '24 10:01 aminya