diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 43629e6275c71..6d1fdb39dfd04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - WASM_BUILD_TOOLCHAIN: nightly-2020-07-20 - jobs: get-variables: runs-on: ubuntu-latest @@ -71,14 +68,16 @@ jobs: ~/.cargo/git target node/standalone/target - key: ${{ runner.OS }}-build-${{ env.WASM_BUILD_TOOLCHAIN }}-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - ${{ runner.OS }}-build-${{ env.WASM_BUILD_TOOLCHAIN }} + ${{ runner.OS }}-build - uses: actions-rs/toolchain@v1 with: target: wasm32-unknown-unknown - toolchain: ${{ env.WASM_BUILD_TOOLCHAIN }} + # Toolchain is autodetected from `rust-toolchain` file + # https://github.com/actions-rs/toolchain#the-toolchain-file + #toolchain: ${{ env.WASM_BUILD_TOOLCHAIN }} default: true - id: get-rust-versions diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000000000..80184fde89b47 --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +nightly-2020-07-20