Skip to content

Commit

Permalink
ci: switch to dtolnay toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnychevalier committed Dec 23, 2023
1 parent c45e990 commit 34b0b2e
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
components: "rust-src"
- uses: Swatinem/rust-cache@v2
- name: Default features
run: cargo test --workspace
Expand All @@ -39,11 +38,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0 # MSRV
profile: minimal
override: true
uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
- name: Default features
run: cargo check --all-targets
Expand All @@ -54,11 +49,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check formatting
Expand All @@ -72,11 +64,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@1.74.0
with:
toolchain: 1.74.0 # MSRV
profile: minimal
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/clippy-check@v1
Expand All @@ -92,11 +81,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
profile: minimal
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/clippy-check@v1
Expand Down

0 comments on commit 34b0b2e

Please sign in to comment.