Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 8902ac2

Browse files
authored
Pin Rust Nightly Version (#420)
* Pin nightly to the 2020-10-04 release * Update nightly version in Dockerfiles * Actually install pinned nightly and Wasm utils
1 parent b45d685 commit 8902ac2

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/rust.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
toolchain:
2323
- stable
2424
#- beta
25-
- nightly
25+
- nightly-2020-10-04
2626
runs-on: self-hosted
2727
container:
2828
image: paritytech/ci-linux:production
@@ -44,6 +44,12 @@ jobs:
4444
with:
4545
fetch-depth: 5
4646
submodules: recursive
47+
- name: Install Toolchain
48+
if: matrix.toolchain == 'nightly-2020-10-04'
49+
run: rustup toolchain add ${{ matrix.toolchain }}
50+
- name: Add WASM Utilities
51+
if: matrix.toolchain == 'nightly-2020-10-04'
52+
run: rustup target add wasm32-unknown-unknown --toolchain ${{ matrix.toolchain }}
4753
- name: Configure CARGO_HOME & CARGO_TARGET_DIR
4854
run: ./scripts/ci-cache.sh "${{ github.head_ref }}" "${{ matrix.toolchain }}"
4955
- name: Cache checking
@@ -75,11 +81,11 @@ jobs:
7581

7682
## Linting Stage
7783
- name: Add clippy
78-
if: matrix.toolchain == 'nightly'
84+
if: matrix.toolchain == 'nightly-2020-10-04'
7985
run: rustup component add clippy --toolchain ${{ matrix.toolchain }}
8086
- name: Clippy
8187
uses: actions-rs/cargo@master
82-
if: matrix.toolchain == 'nightly'
88+
if: matrix.toolchain == 'nightly-2020-10-04'
8389
with:
8490
command: clippy
8591
toolchain: ${{ matrix.toolchain }}

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ RUN update-ca-certificates && \
1919
curl https://sh.rustup.rs -sSf | sh -s -- -y
2020

2121
ENV PATH="/root/.cargo/bin:${PATH}"
22-
ENV LAST_RUST_UPDATE 2020-09-09
22+
ENV LAST_RUST_UPDATE 2020-10-15
2323

2424
RUN rustup update stable && \
25-
rustup install nightly && \
26-
rustup target add wasm32-unknown-unknown --toolchain nightly
25+
rustup install nightly-2020-10-04 && \
26+
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-04
2727

2828
RUN rustc -vV && \
2929
cargo -V && \

deployments/rialto/Bridge.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ RUN update-ca-certificates && \
1919
curl https://sh.rustup.rs -sSf | sh -s -- -y
2020

2121
ENV PATH="/root/.cargo/bin:${PATH}"
22-
ENV LAST_RUST_UPDATE 2020-09-09
22+
ENV LAST_RUST_UPDATE 2020-10-15
2323

2424
RUN rustup update stable && \
25-
rustup install nightly && \
26-
rustup target add wasm32-unknown-unknown --toolchain nightly
25+
rustup install nightly-2020-10-04 && \
26+
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-04
2727

2828
RUN rustc -vV && \
2929
cargo -V && \

0 commit comments

Comments
 (0)