From 8ffa028b2ff1b283fb36c2cd5fdedf4f71903b92 Mon Sep 17 00:00:00 2001 From: Patricia Aas Date: Fri, 10 Sep 2021 13:57:14 +0200 Subject: [PATCH] Try to add caching #4 --- .github/workflows/cmake.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index ac735e7..8042756 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -33,6 +33,17 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Create vcpkg build folder + run: mkdir -p ${{runner.workspace}}/build/_deps + + - name: Cache vcpkg + uses: actions/cache@v2 + env: + cache-name: vcpkg-modules + with: + path: ${{runner.workspace}}/build/_deps + key: ${{ runner.os }}-${{ matrix.configurations.cmake-build-type }}-${{ hashFiles('vcpkg.json') }} + - name: Fix Path on Ubuntu if: matrix.configurations.os == 'ubuntu-20.04' || matrix.configurations.os == 'ubuntu-18.04' run: echo "/home/runner/.local/bin" >> $GITHUB_PATH