From bc87a4d3119bb2ec2d07b2fac74e1cef7322e987 Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Thu, 21 Jan 2021 10:05:13 +0100 Subject: [PATCH] also use cache in install test --- .github/workflows/install.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index b34697a..68b56ac 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -24,8 +24,10 @@ jobs: key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} - name: build and install library + env: + CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules run: | - cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release + cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release sudo cmake --build build --target install rm -rf build