File tree 1 file changed +13
-5
lines changed 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ name: main
4
4
5
5
on :
6
6
push :
7
- branches : [ main ]
7
+ branches : [main]
8
8
pull_request :
9
- branches : [ main ]
9
+ branches : [main]
10
10
workflow_dispatch :
11
11
inputs :
12
12
version :
13
- description : ' Version `x.y.z` (without leading `v`)'
13
+ description : " Version `x.y.z` (without leading `v`)"
14
14
type : string
15
15
required : true
16
16
40
40
with :
41
41
path : |
42
42
~/.cache/bazel_build_cache
43
- key : ${{ runner.os }}-bazel-test-${{ hashFiles('WORKSPACE ') }}
43
+ key : ${{ runner.os }}-bazel-test-${{ hashFiles('MODULE.bazel ') }}
44
44
restore-keys : |
45
45
${{ runner.os }}-bazel-test-
46
46
- name : Run bazel test
91
91
with :
92
92
path : |
93
93
~/.cache/bazel_build_cache
94
- key : ${{ matrix.os }}-bazel-buildpkg-${{ hashFiles('WORKSPACE ') }}
94
+ key : ${{ matrix.os }}-bazel-buildpkg-${{ hashFiles('MODULE.bazel ') }}
95
95
restore-keys : |
96
96
${{ matrix.os }}-bazel-buildpkg-
97
97
- name : Build Release Package
@@ -117,6 +117,14 @@ jobs:
117
117
steps :
118
118
- name : Checkout repository
119
119
uses : actions/checkout@v4
120
+ - name : Bazel cache
121
+ uses : actions/cache@v4
122
+ with :
123
+ path : |
124
+ ~/.cache/bazel_build_cache
125
+ key : bazel-selftest-${{ hashFiles('MODUE.bazel') }}
126
+ restore-keys : |
127
+ bazel-selftest-
120
128
- name : Run bazel to generate worktree
121
129
run : bazel build --config=gnu --config=ci //...
122
130
- name : Download pkg artifact
You can’t perform that action at this time.
0 commit comments