File tree 2 files changed +11
-14
lines changed
2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -81,20 +81,16 @@ jobs:
81
81
with :
82
82
distribution : ' zulu'
83
83
java-version : ${{ matrix.java }}
84
- - name : Mount bazel cache
85
- uses : actions/cache@v1
84
+ - name : Setup Bazel
85
+ uses :
bazel-contrib/[email protected]
86
86
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
95
93
- name : Test
96
- run : |
97
- "${GITHUB_WORKSPACE}/bin/bazel" test //...
94
+ run : bazelisk test //...
98
95
- 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