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

Commit

Permalink
Install wasm target into nightly toolchain (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaninja authored May 24, 2023
1 parent 61d7275 commit 7e0e994
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dockerfiles/ci-linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ LABEL summary="Image for Substrate-based projects." \
RUN set -eux && \
# install `rust-src` component for ui test
rustup component add rust-src rustfmt clippy && \
# install wasm target into default (stable) toolchain
rustup target add wasm32-unknown-unknown && \
# install specific Rust nightly, default is stable, use minimum components
rustup toolchain install "nightly-${RUST_NIGHTLY}" --profile minimal --component rustfmt && \
# install wasm target into nightly toolchain
rustup target add wasm32-unknown-unknown --toolchain "nightly-${RUST_NIGHTLY}" && \
# "alias" pinned nightly toolchain as nightly
ln -s "/usr/local/rustup/toolchains/nightly-${RUST_NIGHTLY}-x86_64-unknown-linux-gnu" /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu && \
# install wasm toolchain
rustup target add wasm32-unknown-unknown && \
# install cargo tools
cargo install cargo-web wasm-pack cargo-deny cargo-spellcheck cargo-hack \
mdbook mdbook-mermaid mdbook-linkcheck mdbook-graphviz mdbook-last-changed && \
Expand Down

0 comments on commit 7e0e994

Please sign in to comment.