Browse Source

rustc 1.52 and nightly-2021-02-20

Mokhtar Naamani 4 years ago
parent
commit
7dbd43ef30
4 changed files with 10 additions and 10 deletions
  1. 1 1
      devops/git-hooks/pre-push
  2. 4 4
      joystream-node.Dockerfile
  3. 1 1
      scripts/cargo-build.sh
  4. 4 4
      setup.sh

+ 1 - 1
devops/git-hooks/pre-push

@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-export WASM_BUILD_TOOLCHAIN=nightly-2020-10-06
+export WASM_BUILD_TOOLCHAIN=nightly-2021-02-20
 
 echo 'running clippy (rust linter)'
 # When custom build.rs triggers wasm-build-runner-impl to build we get error:

+ 4 - 4
joystream-node.Dockerfile

@@ -1,7 +1,7 @@
-FROM liuchong/rustup:1.47.0 AS rustup
+FROM liuchong/rustup:1.52.0 AS rustup
 RUN rustup component add rustfmt clippy
-RUN rustup install nightly-2020-10-06 --force
-RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-06
+RUN rustup install nightly-2021-02-20 --force
+RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2021-02-20
 RUN apt-get update && \
   apt-get install -y curl git gcc xz-utils sudo pkg-config unzip clang libc6-dev-i386
 
@@ -12,7 +12,7 @@ COPY . /joystream
 
 # Build all cargo crates
 # Ensure our tests and linter pass before actual build
-ENV WASM_BUILD_TOOLCHAIN=nightly-2020-10-06
+ENV WASM_BUILD_TOOLCHAIN=nightly-2021-02-20
 RUN BUILD_DUMMY_WASM_BINARY=1 cargo clippy --release --all -- -D warnings && \
     cargo test --release --all && \
     cargo build --release

+ 1 - 1
scripts/cargo-build.sh

@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
 
-export WASM_BUILD_TOOLCHAIN=nightly-2020-10-06
+export WASM_BUILD_TOOLCHAIN=nightly-2021-02-20
 
 cargo build --release

+ 4 - 4
setup.sh

@@ -27,11 +27,11 @@ source ~/.cargo/env
 
 rustup component add rustfmt clippy
 
-rustup install nightly-2020-10-06
-rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-06
+rustup install nightly-2021-02-20
+rustup target add wasm32-unknown-unknown --toolchain nightly-2021-02-20
 
-rustup install 1.47.0
-rustup default 1.47.0
+rustup install 1.52.0
+rustup default 1.52.0
 
 # Volta nodejs, npm, yarn tools manager
 curl https://get.volta.sh | bash