Cache source code fetched via CMake FetchContent in GitHub Actions

Viewed 480

I've got a CMake-based project in which I heavily rely on FetchContent to retrive multiple libraries (source code). Downloading all the libraries may take time which I want to save when compiling on a CI runner (GitHub Actions).

I saw there's a cache action, how I can use that to cache the fetched source code?

As a bonus, It might be helpful to cache the compiled code of these fetched libraries as well. It that possible somehow?

0 Answers
Related