diff --git a/.bazelrc b/.bazelrc index a2dc557..4e0ed4f 100644 --- a/.bazelrc +++ b/.bazelrc @@ -7,8 +7,6 @@ build --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8 build --experimental_strict_action_env build:github_actions --announce_rc -build:github_actions --disk_cache %workspace%/.bazel-cache/disk-cache -build:github_actions --repository_cache %workspace%/.bazel-cache/repo-cache try-import %workspace%/user.bazelrc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a96451..0ccdcdf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,10 @@ jobs: restore-keys: | ${{ runner.os }}-bazel-out- - name: Configure bazel config for actions - run: echo "build --config github_actions" > user.bazelrc + run: | + echo "build --config github_actions" > user.bazelrc + echo "build --disk_cache ${{ github.workspace }}/.bazel-cache/disk-cache" >> user.bazelrc + echo "build --repository_cache ${{ github.workspace }}/.bazel-cache/repo-cache" >> user.bazelrc - name: Ensure bazel on box run: ./bazel env: