From 2a53e585df085ec63e73ecfadcf58cdf781cad3a Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Tue, 7 Nov 2023 19:28:46 +0100 Subject: [PATCH] Add MSRV to CI build-and-test. --- .github/workflows/ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60dc222..7ebe0a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,8 +10,13 @@ env: CARGO_TERM_COLOR: always jobs: - build-and-test-stable: + build-and-test: name: Build and test, Rust-stable + strategy: + matrix: + toolchain: + - stable + - "1.65" runs-on: ubuntu-latest steps: # Get a checkout and rust toolchain. @@ -19,10 +24,10 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: stable + toolchain: ${{matrix.toolchain}} override: true # Build and test - - run: cargo +stable build - - run: cargo +stable test - - run: cargo +stable bench --no-run + - run: cargo +${{matrix.toolchain}} build + - run: cargo +${{matrix.toolchain}} test + - run: cargo +${{matrix.toolchain}} bench --no-run