Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI build by temporarily remove RPC tests #6

Merged
merged 11 commits into from
May 31, 2020
Prev Previous commit
Next Next commit
Set env WASM_BUILD_TOOLCHAIN in CI directly
  • Loading branch information
sorpaas committed May 30, 2020
commit 1ae96e496dde1b3396894f6cda6ecb74e20c3b3c
6 changes: 4 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ jobs:
scripts/init.sh
cargo --version
rustc --version
cargo +nightly --version
rustc +nightly --version
cargo +$WASM_BUILD_TOOLCHAIN --version
rustc +$WASM_BUILD_TOOLCHAIN --version
env:
WASM_BUILD_TOOLCHAIN=nightly-2020-05-14
- name: Build
run: cargo build --verbose --all
- name: Run tests
Expand Down
8 changes: 5 additions & 3 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ set -e

echo "*** Initializing WASM build environment"

NIGHTLY=2020-05-14
if [ -z ${WASM_BUILD_TOOLCHAIN+x} ]; then
WASM_BUILD_TOOLCHAIN=nightly
fi

if [ -z $CI_PROJECT_NAME ] ; then
rustup update nightly-$NIGHTLY
rustup update $WASM_BUILD_TOOLCHAIN
rustup update stable
fi

rustup target add wasm32-unknown-unknown --toolchain nightly-$NIGHTLY
rustup target add wasm32-unknown-unknown --toolchain $WASM_BUILD_TOOLCHAIN