Skip to content

Commit

Permalink
Pin Rust Nightly to 2020-12-17 (paritytech#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
HCastano authored Jan 15, 2021
1 parent 1b3c689 commit e54e6f7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
toolchain:
- stable
#- beta
- nightly
- nightly-2020-12-17
runs-on: self-hosted
container:
image: paritytech/ci-linux:production
Expand All @@ -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/cancel-workflow-action@0.4.1
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit e54e6f7

Please sign in to comment.