From b708633c95083224a5fe2cec58e40b4858bc4852 Mon Sep 17 00:00:00 2001 From: Patricia Aas Date: Fri, 10 Sep 2021 16:33:53 +0200 Subject: [PATCH] Add cache to clang-tidy.yml --- .github/workflows/clang-tidy.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index d7ce351..03637b8 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -13,6 +13,21 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Create vcpkg build folder + run: | + mkdir -p ${{runner.workspace}}/build/vcpkg_installed + mkdir -p ${{runner.workspace}}/build/_deps + + - name: Cache vcpkg + uses: actions/cache@v2 + env: + cache-name: vcpkg-modules + with: + path: | + ${{runner.workspace}}/build/vcpkg_installed + ${{runner.workspace}}/build/_deps + key: clang-tidy-${{ runner.os }}-${{ hashFiles('vcpkg.json') }} + - name: Configure CMake run: cmake -B ${{github.workspace}}/build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON