From 1a4887aaf003433e297e8726b6a8bdd06a1470da Mon Sep 17 00:00:00 2001 From: Robin Linden Date: Sun, 22 Oct 2023 22:58:07 +0200 Subject: [PATCH] ci: Include the Bazel version in the Windows cache key as well This was already done for all Linux jobs. Not sure why we didn't add it to the Windows ones, but oh well. --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f24052b5..ef5991d4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -183,7 +183,7 @@ jobs: - uses: actions/cache@v3 with: path: ~/.cache/bazel - key: windows_msvc-${{ hashFiles('WORKSPACE', 'third_party/**') }} + key: windows_msvc-${{ hashFiles('.bazelversion', 'WORKSPACE', 'third_party/**') }} - run: echo "build --disk_cache ~/.cache/bazel" >.bazelrc.local - name: Build run: bazel build ... -c dbg @@ -205,7 +205,7 @@ jobs: - uses: actions/cache@v3 with: path: ~/.cache/bazel - key: windows_clang_cl-${{ hashFiles('WORKSPACE', 'third_party/**') }} + key: windows_clang_cl-${{ hashFiles('.bazelversion', 'WORKSPACE', 'third_party/**') }} - run: echo "build --config clang-cl" >.bazelrc.local - run: echo "build --disk_cache ~/.cache/bazel" >>.bazelrc.local - run: bazel test ...