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

Install wasm target into nightly toolchain #562

Merged
merged 1 commit into from
May 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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