From 8419bdb27ab6ba536b0c73ce158fab1f4c778515 Mon Sep 17 00:00:00 2001 From: Ranadeep Biswas Date: Thu, 28 Nov 2024 10:24:14 +0100 Subject: [PATCH] fix msrv ci --- .github/workflows/rust.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index b5c50ef2e..5e613eef4 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -127,13 +127,15 @@ jobs: with: repo: foresterre/cargo-msrv file: "cargo-msrv-x86_64-${{ matrix.param.system }}-v.*\\.tgz" + target: "cargo-msrv.tgz" regex: true - name: Install cargo-msrv run: | - tar -xzf "cargo-msrv-x86_64-${{ matrix.param.system }}-v*.tgz" \ - -C ~/.cargo/bin --strip-components=1 --wildcards \ - "cargo-msrv-x86_64-${{ matrix.param.system }}-v*/cargo-msrv" + tar -tf cargo-msrv.tgz \ + | grep '/cargo-msrv' \ + | head -n 1 \ + | xargs -n1 tar -xzf cargo-msrv.tgz -C ~/.cargo/bin --strip-components=1 cargo msrv --version - name: Verify MSRV @@ -143,8 +145,8 @@ jobs: if: ${{ failure() }} run: cargo hack msrv find --min=1.75 --output-format=minimal --all-features - - name: Build with MSRV + - name: Build with Rust version run: cargo hack --rust-version build --all-targets --all-features - - name: Test with MSRV + - name: Test with Rust version run: cargo hack --rust-version test --all-targets --all-features