File tree Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -81,20 +81,16 @@ jobs:
8181 with :
8282 distribution : ' zulu'
8383 java-version : ${{ matrix.java }}
84- - name : Mount bazel cache
85- uses : actions/cache@v1
84+ - name : Setup Bazel
85+ uses :
bazel-contrib/[email protected] 8686 with :
87- path : " /home/runner/.cache/bazel"
88- key : bazel
89- - name : Install bazel
90- run : |
91- curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
92- mkdir -p "${GITHUB_WORKSPACE}/bin/"
93- mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
94- chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
87+ # Avoid downloading Bazel every time.
88+ bazelisk-cache : true
89+ # Store build cache per workflow.
90+ disk-cache : ${{ github.workflow }}
91+ # Share repository cache between workflows.
92+ repository-cache : true
9593 - name : Test
96- run : |
97- "${GITHUB_WORKSPACE}/bin/bazel" test //...
94+ run : bazelisk test //...
9895 - name : Build
99- run : |
100- "${GITHUB_WORKSPACE}/bin/bazel" build //...
96+ run : bazelisk build //...
Original file line number Diff line number Diff line change 1+ 1.1.0
You can’t perform that action at this time.
0 commit comments