Skip to content

Commit 7d6d21e

Browse files
Merge pull request #1118 from l46kok:disable-repository-cache
PiperOrigin-RevId: 945445601
2 parents 028e171 + 313a3cd commit 7d6d21e

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ common --javacopt=-Xlint:-options
1818
# Remove flag once https://github.com/google/cel-spec/issues/508 and rules_jvm_external is fixed.
1919
common --incompatible_autoload_externally=proto_library,cc_proto_library,java_proto_library,java_test
2020

21+
# Limit repository cache size by not caching extracted repository contents
22+
build --repo_contents_cache=
23+

.github/workflows/workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# Avoid downloading Bazel every time.
3131
bazelisk-cache: true
3232
# Store build cache per workflow.
33-
disk-cache: ${{ github.workflow }}
33+
disk-cache: ${{ github.workflow }}-${{ github.job }}
3434
# Share repository cache between workflows.
3535
repository-cache: true
3636
# Prevent PRs from polluting cache
@@ -60,7 +60,7 @@ jobs:
6060
# Avoid downloading Bazel every time.
6161
bazelisk-cache: true
6262
# Store build cache per workflow.
63-
disk-cache: ${{ github.workflow }}
63+
disk-cache: ${{ github.workflow }}-${{ github.job }}
6464
# Share repository cache between workflows.
6565
repository-cache: true
6666
# Prevent PRs from polluting cache
@@ -95,7 +95,7 @@ jobs:
9595
# Avoid downloading Bazel every time.
9696
bazelisk-cache: true
9797
# Store build cache per workflow.
98-
disk-cache: ${{ github.workflow }}
98+
disk-cache: ${{ github.workflow }}-${{ github.job }}
9999
# Share repository cache between workflows.
100100
repository-cache: true
101101
# Never write to the cache, strictly read-only

0 commit comments

Comments
 (0)