Skip to content

Commit 1fff308

Browse files
feat(interop-tests): avoid re-building wasm-pack and wasm-opt
These two are currently always re-built on every run. We don't need `wasm-opt` if we build the WASM in debug mode and we can install `wasm-pack` by downloading it from a URL. Pull-Request: #4497.
1 parent 34b3798 commit 1fff308

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

interop-tests/Dockerfile.chromium

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ ADD . .
66

77
RUN rustup target add wasm32-unknown-unknown
88

9-
RUN --mount=type=cache,target=/usr/local/cargo/registry \
10-
cargo install [email protected] --locked
11-
12-
RUN --mount=type=cache,target=/usr/local/cargo/registry \
13-
cargo install [email protected] --locked
9+
RUN wget -q -O- https://github.com/rustwasm/wasm-pack/releases/download/v0.12.1/wasm-pack-v0.12.1-x86_64-unknown-linux-musl.tar.gz | tar -zx -C /usr/local/bin --strip-components 1 --wildcards "wasm-pack-*/wasm-pack"
10+
RUN wget -q -O- https://github.com/WebAssembly/binaryen/releases/download/version_115/binaryen-version_115-x86_64-linux.tar.gz | tar -zx -C /usr/local/bin --strip-components 2 --wildcards "binaryen-version_*/bin/wasm-opt"
1411

1512
RUN --mount=type=cache,target=./target \
1613
--mount=type=cache,target=/usr/local/cargo/registry \

0 commit comments

Comments
 (0)