Skip to content

Commit

Permalink
Install specific Rust version for wasm32-wasi
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-arm committed Sep 19, 2023
1 parent f0683fe commit 77dc828
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docker/ci/Dockerfile.cache
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ ARG VERSION="latest"
FROM veracruz/ci-base:${VERSION} as final

ARG ARCH=x86_64
ARG WASM_RUST_VERSION=1.66.1

RUN rustup target add ${ARCH}-unknown-linux-musl wasm32-wasi && \
RUN rustup target add ${ARCH}-unknown-linux-musl && \
rustup toolchain install ${WASM_RUST_VERSION} --target wasm32-wasi && \
cargo install empty-library || true # Load crates.io index

WORKDIR /work
4 changes: 3 additions & 1 deletion docker/ci/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ ARG VERSION="latest"
FROM veracruz/ci-base:${VERSION} as final

ARG ARCH=x86_64
ARG WASM_RUST_VERSION=1.66.1

RUN rustup target add ${ARCH}-unknown-linux-musl wasm32-wasi && \
RUN rustup target add ${ARCH}-unknown-linux-musl && \
rustup toolchain install ${WASM_RUST_VERSION} --target wasm32-wasi && \
rustup component add rustfmt

WORKDIR /work

0 comments on commit 77dc828

Please sign in to comment.