@@ -121,6 +121,7 @@ jobs:
121
121
arch : x86_64
122
122
action : test
123
123
flags : --config=clang --define=crypto=system
124
+ cache : true
124
125
- name : ' V8 on Linux/aarch64'
125
126
runtime : ' v8'
126
127
repo : ' v8'
@@ -129,12 +130,14 @@ jobs:
129
130
action : test
130
131
flags : --config=zig-cc-linux-aarch64 --@v8//bazel/config:v8_target_cpu=arm64
131
132
deps : qemu-user-static libc6-arm64-cross
133
+ cache : true
132
134
- name : ' V8 on macOS/x86_64'
133
135
runtime : ' v8'
134
136
repo : ' v8'
135
137
os : macos-11
136
138
arch : x86_64
137
139
action : test
140
+ cache : true
138
141
- name : ' WAMR on Linux/x86_64'
139
142
runtime : ' wamr'
140
143
repo : ' com_github_bytecodealliance_wasm_micro_runtime'
@@ -171,6 +174,7 @@ jobs:
171
174
action : test
172
175
flags : --config=clang
173
176
run_under : docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11
177
+ cache : true
174
178
- name : ' Wasmtime on macOS/x86_64'
175
179
runtime : ' wasmtime'
176
180
repo : ' com_github_bytecodealliance_wasmtime'
@@ -184,6 +188,7 @@ jobs:
184
188
arch : x86_64
185
189
action : test
186
190
flags : --config=clang
191
+ cache : true
187
192
188
193
steps :
189
194
- uses : actions/checkout@v2
@@ -197,11 +202,12 @@ jobs:
197
202
run : docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
198
203
199
204
- name : Set cache key
200
- id : cache-key
205
+ if : ${{ matrix. cache }}
201
206
run : echo "::set-output name=uniq::$(bazel query --output build //external:${{ matrix.repo }} | grep -E 'sha256|commit' | cut -d\" -f2)"
207
+ id : cache-key
202
208
203
209
- name : Bazel cache
204
- if : ${{ matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker') }}
210
+ if : ${{ matrix.cache }}
205
211
uses :
PiotrSikora/[email protected]
206
212
with :
207
213
path : |
@@ -247,11 +253,11 @@ jobs:
247
253
//test:signature_util_test
248
254
249
255
- name : Skip Bazel cache update
250
- if : ${{ github.ref != 'refs/heads/master' && (matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker')) }}
256
+ if : ${{ matrix.cache && github.ref != 'refs/heads/master' }}
251
257
run : echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV
252
258
253
259
- name : Cleanup Bazel cache
254
- if : ${{ github.ref == 'refs/heads/master' && (matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker')) }}
260
+ if : ${{ matrix.cache && github.ref == 'refs/heads/master' }}
255
261
run : |
256
262
export OUTPUT=$(${{ matrix.run_under }} bazel info output_base)
257
263
echo "===== BEFORE ====="
0 commit comments