Skip to content

Commit

Permalink
Replace deprecated actions-rs with dtolnay/rust-toolchain
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Beyer <[email protected]>
  • Loading branch information
matthiasbeyer committed Mar 3, 2023
1 parent 32d31c9 commit f42ba65
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: swatinem/rust-cache@v1
- name: cargo-check
uses: actions-rs/cargo@v1
Expand All @@ -48,10 +47,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: swatinem/rust-cache@v1
- name: cargo-test
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -86,28 +84,24 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.60.0
- run: rustup component add rustfmt
components: rustfmt
- name: cargo-fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
run: cargo fmt -- --check


clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.60.0
override: true
toolchain: 1.67.0
components: clippy
- uses: swatinem/rust-cache@v1
- run: rustup component add clippy
- name: cargo-clippy
run: cargo clippy --all --all-targets --all-features

Expand Down

0 comments on commit f42ba65

Please sign in to comment.