Skip to content

Commit

Permalink
Use dtolnay/rust-toolchain action to setup Rust toolchain on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Jul 5, 2023
1 parent f0ece85 commit 90b825b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
branches: [ master ]

env:
MIN_SUPPORTED_RUST_VERSION: "1.64" # MSRV policy = last three versions of stable
CARGO_TERM_COLOR: always

jobs:
Expand All @@ -17,11 +16,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}
default: true
profile: minimal
toolchain: stable minus 2 releases # MSRV policy = last three versions of stable
components: clippy
- name: Run cargo clippy
run: |
Expand Down Expand Up @@ -51,6 +48,7 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
- name: Build
run: |
cargo build
Expand Down

0 comments on commit 90b825b

Please sign in to comment.