|
24 | 24 | uses: actions/cache@v3
|
25 | 25 | with:
|
26 | 26 | path: ~/.cache/bazel
|
27 |
| - key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }} |
28 |
| - |
| 27 | + key: ${{ runner.os }}-${{ hashFiles('WORKSPACE') }} |
| 28 | + restore-keys: ${{ runner.os }}- |
29 | 29 | - name: Bazel Cache Not Found
|
30 | 30 | if: steps.cache-bazel.outputs.cache-hit != 'true'
|
31 | 31 | run: |
|
|
35 | 35 | run: |
|
36 | 36 | echo -n "Cache found. Cache size: "
|
37 | 37 | du -sh ~/.cache/bazel
|
38 |
| - echo "If the cache seems broken, update the CACHE_VERSION secret in" |
39 |
| - echo "https://github.com/googleapis/googleapis-discovery/settings/secrets/actions" |
40 |
| - echo "(use any random string, any GUID will work)" |
41 |
| - echo "and it will start over with a clean cache." |
| 38 | + echo "If the cache seems broken, update the root WORKSPACE file with a trivial change." |
42 | 39 | echo "The old one will disappear after 7 days."
|
43 | 40 |
|
44 | 41 | - name: Integration Tests
|
|
70 | 67 | uses: actions/cache@v3
|
71 | 68 | with:
|
72 | 69 | path: ~/.cache/bazel
|
73 |
| - key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }} |
74 |
| - |
| 70 | + key: ${{ runner.os }}-${{ hashFiles('WORKSPACE') }} |
| 71 | + restore-keys: ${{ runner.os }}- |
75 | 72 | - name: Bazel Cache Not Found
|
76 | 73 | if: steps.cache-bazel.outputs.cache-hit != 'true'
|
77 | 74 | run: |
|
|
81 | 78 | run: |
|
82 | 79 | echo -n "Cache found. Cache size: "
|
83 | 80 | du -sh ~/.cache/bazel
|
84 |
| - echo "If the cache seems broken, update the CACHE_VERSION secret in" |
85 |
| - echo "https://github.com/googleapis/googleapis-discovery/settings/secrets/actions" |
86 |
| - echo "(use any random string, any GUID will work)" |
87 |
| - echo "and it will start over with a clean cache." |
88 |
| - echo "The old one will disappear after 7 days." |
| 81 | + echo "If the cache seems broken, update the root WORKSPACE file with a trivial change." |
| 82 | + echo "The old cache will disappear after 7 days." |
89 | 83 |
|
90 | 84 | - name: Gradle Build Generated Storage Client Library
|
91 | 85 | run: |
|
|
0 commit comments