From a0bce5135a6955875af390856920eac4e9805c70 Mon Sep 17 00:00:00 2001 From: Ruben De Smet Date: Thu, 14 Dec 2023 13:33:13 +0100 Subject: [PATCH] Add MSRV to pipeline --- .github/workflows/build.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28b6806..37d44d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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