Browse Source

Bump the cache key so we save a fresh cache. (#589)

This was necessary when I was testing this on my own PR branch, but
without this rebuilds on trunk won't save a fresh cache for folks to use
on *their* pull commit branches. We just need a fresh key here.
Chandler Carruth 4 years ago
parent
commit
7ca4dd5c12
1 changed files with 2 additions and 2 deletions
  1. 2 2
      .github/workflows/tests.yaml

+ 2 - 2
.github/workflows/tests.yaml

@@ -114,12 +114,12 @@ jobs:
             ${{ env.BAZEL_DISK_CACHE_PATH }}
             ${{ env.BAZEL_DISK_CACHE_PATH }}
           # The `bazel-1` string here and below in the key acts as a counter
           # The `bazel-1` string here and below in the key acts as a counter
           # that can be incremented to rebase the cache in the event of
           # that can be incremented to rebase the cache in the event of
-          # persistent corruption or other rare bug. The `-1-` prefix to the
+          # persistent corruption or other rare bug. The `-2-` prefix to the
           # date can be incremented when adding new targets or updating this
           # date can be incremented when adding new targets or updating this
           # configuration and a new cache should be created but there is no
           # configuration and a new cache should be created but there is no
           # reason to discard prior caches.
           # reason to discard prior caches.
           key: |
           key: |
-            bazel-1-${{ matrix.os }}-${{ matrix.build_mode }}-1-${{ steps.date.outputs.date }}
+            bazel-1-${{ matrix.os }}-${{ matrix.build_mode }}-2-${{ steps.date.outputs.date }}
           # When we get a cache miss, try finding the most recent previous day's
           # When we get a cache miss, try finding the most recent previous day's
           # cache to start.
           # cache to start.
           restore-keys: |
           restore-keys: |