Skip to content

Question: Can we cache the installation folders #212

Open

Description

@pedroo-seaiaa

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.

Activity

  1. aminya commented on Jan 22, 2024

    @aminya
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions