Skip to content

Commit

Permalink
CI: Try using only MSRV in tests & lints
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Dec 3, 2024
1 parent c033d2e commit ec1955e
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ name: CI
on:
pull_request:
push:
branches:
- master
#branches:
# - master

env:
MSRV: "1.70"

jobs:
check-msrv:
name: Check
strategy:
matrix:
toolchain:
- "1.70"
- msrv
- stable
runs-on: ubuntu-latest
steps:
Expand All @@ -27,7 +30,7 @@ jobs:
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain}}
toolchain: ${{ matrix.toolchain == 'msrv' && env.MSRV || 'stable' }}

- uses: Swatinem/rust-cache@v2

Expand All @@ -46,8 +49,10 @@ jobs:
- name: Remove the rust-toolchain.toml
run: rm rust-toolchain.toml

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install MSRV toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: "${{ env.MSRV }}"

- uses: Swatinem/rust-cache@v2

Expand All @@ -67,9 +72,10 @@ jobs:
- name: Remove the rust-toolchain.toml
run: rm rust-toolchain.toml

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install MSRV toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: "${{ env.MSRV }}"
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit ec1955e

Please sign in to comment.