Skip to content

Commit ca6c9d0

Browse files
committed
[cicd] try to fix bazel cache
1 parent 7703c4f commit ca6c9d0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/test-opensrc.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,18 @@ jobs:
5555
path: |
5656
/root/.cache/
5757
key: ${{ runner.os }}-unittest-cache
58-
# - uses: bazel-contrib/setup-bazel@0.18.0
59-
# with:
60-
# bazelisk-cache: true
61-
# disk-cache: ${{ runner.os }}-${{ github.workflow }}-integration_test
62-
# repository-cache: true
63-
# cache-save: ${{ github.event_name != 'pull_request' }}
58+
- uses: bazel-contrib/setup-bazel@0.18.0
59+
with:
60+
bazelisk-cache: true
61+
disk-cache: ${{ runner.os }}-${{ github.workflow }}-integration_test
62+
repository-cache: true
63+
cache-save: ${{ github.event_name != 'pull_request' }}
6464
- name: bazel_test
6565
run: |
6666
set -x
6767
set -e
68+
du -h -d 3 /${HOME}/.cache/
69+
df -h
6870
bazelisk test //integration_test/... --cache_test_results=no --test_output=errors
6971
ls -alh ./
7072
du -h -d 3 /${HOME}/.cache/

0 commit comments

Comments
 (0)