From 18e09b07baadd49bc003a3fbf7c982e9e9d5fd0f Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Tue, 6 Oct 2020 08:07:00 -0300 Subject: [PATCH] Implemented GitHub Actions cache example (#156) * Implemented GitHub Actions cache example * Updated GitHub Actions example * Update README.md * Fixed consistency Co-authored-by: Lars Melchior Co-authored-by: Lars Melchior --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 25bfd84..7b9d559 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,8 @@ export CPM_SOURCE_CACHE=$HOME/.cache/CPM Note that passing the variable as a configure option to CMake will always override the value set by the environmental variable. +You can use `CPM_SOURCE_CACHE` on GitHub Actions workflows [cache](https://github.com/actions/cache) and combine it with ccache, to make your CI faster. See the [wiki](https://github.com/TheLartians/CPM.cmake/wiki/Caching-with-CPM.cmake-and-ccache-on-GitHub-Actions) for more info. + ### CPM_DOWNLOAD_ALL If set, CPM will forward all calls to `CPMFindPackage` as `CPMAddPackage`. @@ -196,7 +198,6 @@ cmake --build build --target cpm-update-package-lock See the [wiki](https://github.com/TheLartians/CPM.cmake/wiki/Package-lock) for more info. - ## Built with CPM.cmake Some amazing projects that are built using the CPM.cmake package manager.