Skip to content

Commit 5401f05

Browse files
authored
Merge pull request #395 from castler/js_setup_bazel_next_try
actions: Another try for better cache handling
2 parents 1e03b31 + 17c4d0d commit 5401f05

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/address_undefined_behavior_leak_sanitizer.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,20 @@ jobs:
3535
runs-on: ubuntu-24.04
3636
permissions:
3737
contents: read
38+
actions: write
3839
steps:
3940
- name: Checkout repository
4041
uses: actions/checkout@v6.0.2
4142
- name: Free Disk Space (Ubuntu)
4243
uses: eclipse-score/more-disk-space@v1
4344
with:
4445
level: 4
45-
- uses: castler/setup-bazel@8818d35864b4088fb3a12e7a3191777dc418fd69
46+
- uses: castler/setup-bazel@cache-optimized
4647
with:
4748
bazelisk-cache: true
4849
disk-cache: "build_and_test_asan_ubsan_lsan"
49-
disk-cache-key: "main"
5050
repository-cache: true
51+
cache-optimized: true
5152
cache-save: ${{ github.ref == 'refs/heads/main' }}
5253
- name: Allow linux-sandbox
5354
uses: ./actions/unblock_user_namespace_for_linux_sandbox

.github/workflows/build_and_test_host.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,20 @@ jobs:
8989
runs-on: ubuntu-24.04
9090
permissions:
9191
contents: read
92+
actions: write
9293
steps:
9394
- name: Checkout repository
9495
uses: actions/checkout@v6.0.2
9596
- name: Free Disk Space (Ubuntu)
9697
uses: eclipse-score/more-disk-space@v1
9798
with:
9899
level: 4
99-
- uses: castler/setup-bazel@8818d35864b4088fb3a12e7a3191777dc418fd69
100+
- uses: castler/setup-bazel@cache-optimized
100101
with:
101102
bazelisk-cache: true
102103
disk-cache: build_and_test_host${{ matrix.identifier }}
103-
disk-cache-key: "main"
104104
repository-cache: true
105+
cache-optimized: true
105106
cache-save: ${{ github.ref == 'refs/heads/main' }}
106107
- name: Allow linux-sandbox
107108
uses: ./actions/unblock_user_namespace_for_linux_sandbox

.github/workflows/build_and_test_qnx.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ jobs:
116116
permissions:
117117
contents: read
118118
pull-requests: read
119+
actions: write
119120
steps:
120121
- name: Checkout repository
121122
uses: actions/checkout@v6.0.2
@@ -127,12 +128,12 @@ jobs:
127128
with:
128129
level: 4
129130
- name: Setup Bazel
130-
uses: castler/setup-bazel@8818d35864b4088fb3a12e7a3191777dc418fd69
131+
uses: castler/setup-bazel@cache-optimized
131132
with:
132133
bazelisk-cache: true
133134
disk-cache: build_and_test_qnx
134-
disk-cache-key: "main"
135135
repository-cache: true
136+
cache-optimized: true
136137
cache-save: ${{ github.ref == 'refs/heads/main' }}
137138
- name: Allow linux-sandbox
138139
uses: ./actions/unblock_user_namespace_for_linux_sandbox

.github/workflows/thread_sanitizer.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,20 @@ jobs:
3434
runs-on: ubuntu-24.04
3535
permissions:
3636
contents: read
37+
actions: write
3738
steps:
3839
- name: Checkout repository
3940
uses: actions/checkout@v6.0.2
4041
- name: Free Disk Space (Ubuntu)
4142
uses: eclipse-score/more-disk-space@v1
4243
with:
4344
level: 4
44-
- uses: castler/setup-bazel@8818d35864b4088fb3a12e7a3191777dc418fd69
45+
- uses: castler/setup-bazel@cache-optimized
4546
with:
4647
bazelisk-cache: true
4748
disk-cache: "build_and_test_tsan"
48-
disk-cache-key: "main"
4949
repository-cache: true
50+
cache-optimized: true
5051
cache-save: ${{ github.ref == 'refs/heads/main' }}
5152
- name: Allow linux-sandbox
5253
uses: ./actions/unblock_user_namespace_for_linux_sandbox

0 commit comments

Comments
 (0)