Skip to content

Commit 63a4197

Browse files
committed
ci: don't cache WAMR.
Following proxy-wasm#239, it builds fast enough. Signed-off-by: Piotr Sikora <[email protected]>
1 parent 5a61399 commit 63a4197

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/cpp.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ jobs:
121121
arch: x86_64
122122
action: test
123123
flags: --config=clang --define=crypto=system
124+
cache: true
124125
- name: 'V8 on Linux/aarch64'
125126
runtime: 'v8'
126127
repo: 'v8'
@@ -129,12 +130,14 @@ jobs:
129130
action: test
130131
flags: --config=zig-cc-linux-aarch64 --@v8//bazel/config:v8_target_cpu=arm64
131132
deps: qemu-user-static libc6-arm64-cross
133+
cache: true
132134
- name: 'V8 on macOS/x86_64'
133135
runtime: 'v8'
134136
repo: 'v8'
135137
os: macos-11
136138
arch: x86_64
137139
action: test
140+
cache: true
138141
- name: 'WAMR on Linux/x86_64'
139142
runtime: 'wamr'
140143
repo: 'com_github_bytecodealliance_wasm_micro_runtime'
@@ -163,6 +166,7 @@ jobs:
163166
action: build
164167
flags: --config=clang
165168
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
166170
- name: 'Wasmtime on Linux/s390x'
167171
runtime: 'wasmtime'
168172
repo: 'com_github_bytecodealliance_wasmtime'
@@ -171,6 +175,7 @@ jobs:
171175
action: test
172176
flags: --config=clang
173177
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
174179
- name: 'Wasmtime on macOS/x86_64'
175180
runtime: 'wasmtime'
176181
repo: 'com_github_bytecodealliance_wasmtime'
@@ -184,6 +189,7 @@ jobs:
184189
arch: x86_64
185190
action: test
186191
flags: --config=clang
192+
cache: true
187193

188194
steps:
189195
- uses: actions/checkout@v2
@@ -197,11 +203,12 @@ jobs:
197203
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
198204

199205
- name: Set cache key
200-
id: cache-key
206+
if: ${{ matrix.cache }}
201207
run: echo "::set-output name=uniq::$(bazel query --output build //external:${{ matrix.repo }} | grep -E 'sha256|commit' | cut -d\" -f2)"
208+
id: cache-key
202209

203210
- name: Bazel cache
204-
if: ${{ matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker') }}
211+
if: ${{ matrix.cache }}
205212
uses: PiotrSikora/[email protected]
206213
with:
207214
path: |
@@ -247,11 +254,11 @@ jobs:
247254
//test:signature_util_test
248255
249256
- 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' }}
251258
run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV
252259

253260
- 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' }}
255262
run: |
256263
export OUTPUT=$(bazel info output_base)
257264
# BoringSSL's test data (90 MiB).

0 commit comments

Comments
 (0)