Skip to content

Commit

Permalink
Use actions-rs/toolchain for nightly Rust builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bluk committed Nov 6, 2019
1 parent 2359cec commit 233c0a5
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,11 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v1
- id: component
name: Search for latest nightly clippy
uses: actions-rs/components-nightly@v1
with:
target: x86_64-unknown-linux-gnu
component: clippy
- name: Install nightly toolchain with clippy available
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ steps.component.outputs.toolchain }}
toolchain: nightly
components: clippy
override: true
- name: Install clippy
run: rustup component add clippy
Expand All @@ -38,16 +33,11 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v1
- id: component
name: Search for latest nightly rustfmt
uses: actions-rs/components-nightly@v1
with:
target: x86_64-unknown-linux-gnu
component: rustfmt
- name: Install nightly toolchain with rustfmt available
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ steps.component.outputs.toolchain }}
toolchain: nightly
components: rustfmt
override: true
- name: Install rustfmt
run: rustup component add rustfmt
Expand Down

0 comments on commit 233c0a5

Please sign in to comment.