-
Notifications
You must be signed in to change notification settings - Fork 977
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] run specific step in docker container
- Loading branch information
Gianmarco Fraccaroli
committed
Jul 29, 2022
1 parent
c53f269
commit 9d327b5
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
# This docker is used for deterministic wasm builds | ||
|
||
# The version should be matching the version set in wasm/rust-toolchain.toml | ||
FROM rust:1.61.0 | ||
FROM rust:1.61 | ||
|
||
WORKDIR /usr/local/rust/wasm | ||
WORKDIR /__w/namada/namada | ||
|
||
# The version should be matching the version set above | ||
RUN rustup toolchain install 1.61.0 --component rustc cargo rust-std rust-docs rls rust-analysis rustfmt | ||
RUN rustup toolchain install 1.61.0 --profile minimal | ||
RUN rustup target add wasm32-unknown-unknown | ||
|
||
# Download binaryen and verify checksum | ||
# Download binaryen and extract wasm-opt | ||
ADD https://github.com/WebAssembly/binaryen/releases/download/version_109/binaryen-version_109-x86_64-linux.tar.gz /tmp/binaryen.tar.gz | ||
|
||
# Extract and install wasm-opt | ||
RUN tar -xf /tmp/binaryen.tar.gz | ||
RUN mv binaryen-version_*/bin/wasm-opt /usr/local/bin | ||
RUN rm -rf binaryen-version_*/ /tmp/binaryen.tar.gz |