File tree 2 files changed +16
-11
lines changed
2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,14 @@ jobs:
88
88
apidiff -incompatible pkg.latest github.com/googleapis/gapic-showcase/client > diff.txt && cat diff.txt && ! [ -s diff.txt ]
89
89
bazel-build :
90
90
runs-on : ubuntu-latest
91
- env :
92
- USE_BAZEL_VERSION : 6.0.0
93
- container : gcr.io/gapic-images/googleapis:latest
94
- # Dockerfile for this image: https://github.com/googleapis/googleapis-discovery/blob/master/Dockerfile
95
91
steps :
96
92
- uses : actions/checkout@v4
97
- - name : Run bazel build
98
- run : bazelisk build '//...'
99
- - name : Run bazel test
93
+ - uses : bazel-contrib/setup-bazel@0.8.1
94
+ with :
95
+ # Avoid downloading Bazel every time.
96
+ bazelisk-cache : true
97
+ # Store build cache per workflow.
98
+ disk-cache : ${{ github.workflow }}
99
+ # Share repository cache between workflows.
100
+ repository-cache : true
100
101
run : bazelisk test '//...'
Original file line number Diff line number Diff line change @@ -14,12 +14,16 @@ jobs:
14
14
outputs :
15
15
changed : ${{ steps.update.outputs.changed }}
16
16
runs-on : ubuntu-latest
17
- env :
18
- USE_BAZEL_VERSION : 6.0.0
19
- container : gcr.io/gapic-images/googleapis:latest
20
- # Dockerfile for this image: https://github.com/googleapis/googleapis-discovery/blob/master/Dockerfile
21
17
steps :
22
18
- uses : actions/checkout@v4
19
+ - uses : bazel-contrib/setup-bazel@0.8.1
20
+ with :
21
+ # Avoid downloading Bazel every time.
22
+ bazelisk-cache : true
23
+ # Store build cache per workflow.
24
+ disk-cache : ${{ github.workflow }}
25
+ # Share repository cache between workflows.
26
+ repository-cache : true
23
27
- name : Run gazelle update-repos
24
28
id : update
25
29
run : |
You can’t perform that action at this time.
0 commit comments