@@ -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'
@@ -163,6 +166,7 @@ jobs:
163
166
action : build
164
167
flags : --config=clang
165
168
run_under : docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/arm64 piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11
169
+ cache : true
166
170
- name : ' Wasmtime on Linux/s390x'
167
171
runtime : ' wasmtime'
168
172
repo : ' com_github_bytecodealliance_wasmtime'
@@ -171,6 +175,7 @@ jobs:
171
175
action : test
172
176
flags : --config=clang
173
177
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
178
+ cache : true
174
179
- name : ' Wasmtime on macOS/x86_64'
175
180
runtime : ' wasmtime'
176
181
repo : ' com_github_bytecodealliance_wasmtime'
@@ -184,6 +189,7 @@ jobs:
184
189
arch : x86_64
185
190
action : test
186
191
flags : --config=clang
192
+ cache : true
187
193
188
194
steps :
189
195
- uses : actions/checkout@v2
@@ -197,11 +203,12 @@ jobs:
197
203
run : docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
198
204
199
205
- name : Set cache key
200
- id : cache-key
206
+ if : ${{ matrix. cache }}
201
207
run : echo "::set-output name=uniq::$(bazel query --output build //external:${{ matrix.repo }} | grep -E 'sha256|commit' | cut -d\" -f2)"
208
+ id : cache-key
202
209
203
210
- name : Bazel cache
204
- if : ${{ matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker') }}
211
+ if : ${{ matrix.cache }}
205
212
uses :
PiotrSikora/[email protected]
206
213
with :
207
214
path : |
@@ -247,11 +254,11 @@ jobs:
247
254
//test:signature_util_test
248
255
249
256
- name : Skip Bazel cache update
250
- if : ${{ github.ref != 'refs/heads/master' && (matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker')) }}
257
+ if : ${{ matrix.cache && github.ref != 'refs/heads/master' }}
251
258
run : echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV
252
259
253
260
- name : Cleanup Bazel cache
254
- if : ${{ github.ref == 'refs/heads/master' && (matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker')) }}
261
+ if : ${{ matrix.cache && github.ref == 'refs/heads/master' }}
255
262
run : |
256
263
export OUTPUT=$(bazel info output_base)
257
264
# BoringSSL's test data (90 MiB).
0 commit comments