Skip to content

Commit

Permalink
chore: install wasmtime with component model feature
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardomourar committed May 25, 2023
1 parent 611a6a0 commit 7f99234
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tools/ci-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,9 @@ ARG rust_nightly_version
RUN cargo +${rust_nightly_version} -Z sparse-registry install wasm-pack --locked --version ${wasm_pack_version}

FROM install_rust AS wasmtime
ARG wasmtime_precompiled_url=https://github.com/bytecodealliance/wasmtime/releases/download/v8.0.0/wasmtime-v8.0.0-x86_64-linux.tar.xz
ARG wasmtime_precompiled_sha256=0ba34842bbac8896dbdd860173b2c554d93d63ecc490f725fe3331db913714ad
ARG cargo_wasmtime_version=9.0.1
ARG rust_nightly_version
RUN set -eux; \
curl "${wasmtime_precompiled_url}" -L -o wasmtime.xz; \
echo "${wasmtime_precompiled_sha256} wasmtime.xz" | sha256sum --check; \
tar xf wasmtime.xz; \
mv wasmtime-v*/wasmtime /opt;
RUN cargo +${rust_nightly_version} -Z sparse-registry install wasmtime-cli --features="component-model" --locked --version ${wasm_pack_version}

FROM install_rust AS cargo_wasi
ARG cargo_wasi_version=0.1.27
Expand Down Expand Up @@ -178,7 +173,7 @@ COPY --chown=build:build --from=cargo_minimal_versions /opt/cargo/bin/cargo-mini
COPY --chown=build:build --from=cargo_check_external_types /opt/cargo/bin/cargo-check-external-types /opt/cargo/bin/cargo-check-external-types
COPY --chown=build:build --from=maturin /opt/cargo/bin/maturin /opt/cargo/bin/maturin
COPY --chown=build:build --from=wasm_pack /opt/cargo/bin/wasm-pack /opt/cargo/bin/wasm-pack
COPY --chown=build:build --from=wasmtime /opt/wasmtime /opt/cargo/bin/wasmtime
COPY --chown=build:build --from=wasmtime /opt/cargo/bin/wasmtime /opt/cargo/bin/wasmtime
COPY --chown=build:build --from=cargo_wasi /opt/cargo/bin/cargo-wasi /opt/cargo/bin/cargo-wasi
COPY --chown=build:build --from=install_rust /opt/rustup /opt/rustup
COPY --chown=build:build --from=cargo_semver_checks /opt/cargo/bin/cargo-semver-checks /opt/cargo/bin/cargo-semver-checks
Expand Down

0 comments on commit 7f99234

Please sign in to comment.