Skip to content

Commit

Permalink
Add MSRV to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rubdos committed Dec 14, 2023
1 parent c9012d0 commit a0bce51
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ jobs:
matrix:
toolchain: ["stable", "beta"]
coverage: [false]
tests: [true]
include:
- toolchain: "nightly"
coverage: true
tests: true
- toolchain: "1.58.0"
coverage: false
tests: false
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -39,22 +44,30 @@ jobs:
- name: Configure CI cache
uses: Swatinem/rust-cache@v2

- name: Build
- name: Build all targets
uses: actions-rs/cargo@v1
if: ${{ matrix.tests }}
with:
command: build
args: --all-targets

- name: Build
uses: actions-rs/cargo@v1
if: ${{ !matrix.tests }}
with:
command: build
args: --lib --all-features

- name: Run tests
uses: actions-rs/cargo@v1
if: ${{ !matrix.coverage }}
if: ${{ !matrix.coverage && matrix.tests }}
with:
command: test
args: --all-targets --no-fail-fast

- name: Run tests
uses: actions-rs/cargo@v1
if: ${{ matrix.coverage }}
if: ${{ matrix.coverage && matrix.tests }}
with:
command: test
args: --all-targets --no-fail-fast
Expand Down

0 comments on commit a0bce51

Please sign in to comment.