Skip to content

Commit

Permalink
pin rust nightly version to generate MVP wasm code (#1429)
Browse files Browse the repository at this point in the history
* pin rust nightly version

* pin version
  • Loading branch information
laizy authored Apr 3, 2023
1 parent dde2678 commit f966c6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions wasmtest/gha-run-wasm-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ wget releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.
tar xf clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz > /dev/null 2>&1
export PATH="$(pwd)/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04/bin":$PATH

RUST_VERSION=nightly-2022-12-07

# ensure rust
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUST_VERSION
source $HOME/.cargo/env


rustup default nightly
rustup default $RUST_VERSION
rustup target add wasm32-unknown-unknown
which ontio-wasm-build || cargo install --git=https://github.com/ontio/ontio-wasm-build

Expand Down
6 changes: 5 additions & 1 deletion wasmtest/run-wasm-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ if ! which clang-9 ; then
export PATH="$(pwd)/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04/bin":$PATH
fi


RUST_VERSION=nightly-2022-12-07

if ! which rustup ; then
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUST_VERSION
source $HOME/.cargo/env
fi

rustup target add wasm32-unknown-unknown
which ontio-wasm-build || cargo install --git=https://github.com/ontio/ontio-wasm-build

Expand Down

0 comments on commit f966c6d

Please sign in to comment.