Skip to content
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

Question: Can we cache the installation folders #212

Open
pedroo-seaiaa opened this issue Dec 19, 2023 · 1 comment
Open

Question: Can we cache the installation folders #212

pedroo-seaiaa opened this issue Dec 19, 2023 · 1 comment

Comments

@pedroo-seaiaa
Copy link

pedroo-seaiaa commented Dec 19, 2023

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
@aminya
Copy link
Owner

aminya commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants