Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit 7e0e994

Browse files
authored
Install wasm target into nightly toolchain (#562)
1 parent 61d7275 commit 7e0e994

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dockerfiles/ci-linux/Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ LABEL summary="Image for Substrate-based projects." \
2222
RUN set -eux && \
2323
# install `rust-src` component for ui test
2424
rustup component add rust-src rustfmt clippy && \
25+
# install wasm target into default (stable) toolchain
26+
rustup target add wasm32-unknown-unknown && \
2527
# install specific Rust nightly, default is stable, use minimum components
2628
rustup toolchain install "nightly-${RUST_NIGHTLY}" --profile minimal --component rustfmt && \
29+
# install wasm target into nightly toolchain
30+
rustup target add wasm32-unknown-unknown --toolchain "nightly-${RUST_NIGHTLY}" && \
2731
# "alias" pinned nightly toolchain as nightly
2832
ln -s "/usr/local/rustup/toolchains/nightly-${RUST_NIGHTLY}-x86_64-unknown-linux-gnu" /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu && \
29-
# install wasm toolchain
30-
rustup target add wasm32-unknown-unknown && \
3133
# install cargo tools
3234
cargo install cargo-web wasm-pack cargo-deny cargo-spellcheck cargo-hack \
3335
mdbook mdbook-mermaid mdbook-linkcheck mdbook-graphviz mdbook-last-changed && \

0 commit comments

Comments
 (0)