forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pin Rust Nightly to 2020-12-17 (paritytech#652)
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
toolchain: | ||
- stable | ||
#- beta | ||
- nightly | ||
- nightly-2020-12-17 | ||
runs-on: self-hosted | ||
container: | ||
image: paritytech/ci-linux:production | ||
|
@@ -35,6 +35,7 @@ jobs: | |
CMAKE_C_COMPILER_LAUNCHER: sccache | ||
CMAKE_CXX_COMPILER_LAUNCHER: sccache | ||
CARGO_TARGET_DIR: "/cache/${{ github.head_ref }}/${{ matrix.toolchain }}/" | ||
WASM_BUILD_TOOLCHAIN: nightly-2020-12-17 | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
@@ -48,6 +49,10 @@ jobs: | |
- name: Configure CARGO_TARGET_DIR | ||
shell: bash | ||
run: ./scripts/ci-cache.sh | ||
- name: Install Toolchain | ||
run: rustup toolchain add nightly-2020-12-17 | ||
- name: Add WASM Utilities | ||
run: rustup target add wasm32-unknown-unknown --toolchain nightly-2020-12-17 | ||
- name: Cache checking | ||
if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'reopened' | ||
continue-on-error: true | ||
|
@@ -77,11 +82,11 @@ jobs: | |
|
||
## Linting Stage | ||
- name: Add clippy | ||
if: matrix.toolchain == 'nightly' | ||
if: matrix.toolchain == 'nightly-2020-12-17' | ||
run: rustup component add clippy --toolchain ${{ matrix.toolchain }} | ||
- name: Clippy | ||
uses: actions-rs/cargo@master | ||
if: matrix.toolchain == 'nightly' | ||
if: matrix.toolchain == 'nightly-2020-12-17' | ||
with: | ||
command: clippy | ||
toolchain: ${{ matrix.toolchain }} | ||
|