From e5d563c07a76276b0508b6b4b6922acbdfeb497f Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sun, 9 Jun 2024 16:32:30 -0700 Subject: [PATCH 1/2] ci: Add MSRV build Signed-off-by: John Nunley --- .github/workflows/build-and-test.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index c29fc25..146f0c8 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -33,3 +33,12 @@ jobs: - name: Run cargo test run: cargo test + + msrv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install cargo-hack + uses: taiki-e/install-action@cargo-hack + - run: cargo hack build --all --rust-version + - run: cargo hack build --all --no-default-features --rust-version From 45fb22e2ffe5376e563ff7df7cdb2b16018f52e8 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Mon, 10 Jun 2024 17:08:29 -0700 Subject: [PATCH 2/2] ci: Name the MSRV compatibility builds Signed-off-by: John Nunley --- .github/workflows/build-and-test.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 146f0c8..4b2a963 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -40,5 +40,7 @@ jobs: - uses: actions/checkout@v4 - name: Install cargo-hack uses: taiki-e/install-action@cargo-hack - - run: cargo hack build --all --rust-version - - run: cargo hack build --all --no-default-features --rust-version + - name: Check MSRV Compatibility + run: | + cargo hack build --all --rust-version + cargo hack build --all --no-default-features --rust-version