File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
swift/actions/build-and-test Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,19 @@ runs:
10
10
- name : Mount bazel cache
11
11
uses : ./.github/actions/incremental-cache
12
12
with :
13
- path : " ~/.cache/ bazel-repository-cache"
13
+ path : bazel-repository-cache
14
14
key : bazel-cache-${{ runner.os }}-${{ runner.arch }}
15
15
- name : Mount bazel disk cache
16
16
uses : ./.github/actions/incremental-cache
17
17
with :
18
- path : " ~/.cache/ bazel-disk-cache"
18
+ path : bazel-disk-cache
19
19
key : bazel-disk-cache-${{ runner.os }}-${{ runner.arch }}
20
20
- name : Configure bazel cache
21
21
shell : bash
22
22
run : |
23
- echo build --repository_cache=~/.cache/bazel-repository-cache --disk_cache=~/.cache/bazel-disk-cache > ~/.bazelrc
24
- echo test --test_output=errors >> ~/.bazelrc
23
+ mkdir bazel-repository-cache bazel-disk-cache
24
+ echo build --repository_cache=bazel-repository-cache --disk_cache=bazel-disk-cache > local.bazelrc
25
+ echo test --test_output=errors >> local.bazelrc
25
26
- name : Print unextracted entities
26
27
shell : bash
27
28
run : |
50
51
if : ${{ github.event_name != 'pull_request' }}
51
52
shell : bash
52
53
run : |
53
- find "~/.cache/ bazel-repository-cache" "~/.cache/ bazel-disk-cache" -atime +0 -type f -delete || : # ignore errors if the cache is empty
54
- du -sh "~/.cache/ bazel-repository-cache" "~/.cache/ bazel-disk-cache" || : # ignore errors if the cache is empty
54
+ find bazel-repository-cache bazel-disk-cache -atime +0 -type f -delete
55
+ du -sh bazel-repository-cache bazel-disk-cache
You can’t perform that action at this time.
0 commit comments