From 9306efc0fde2ce556854c44369eaaab6d4981993 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Tue, 9 Jan 2024 16:21:32 +1000 Subject: [PATCH] Build and test the MSRV and latest --- .github/workflows/rust.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index bc8fe0865..7da41c8b4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -64,6 +64,7 @@ jobs: strategy: fail-fast: false matrix: + rust: [msrv, latest] sys: - os: ubuntu-latest target: x86_64-unknown-linux-gnu @@ -85,15 +86,22 @@ jobs: steps: - uses: actions/checkout@v3 - uses: stellar/actions/rust-cache@main + - name: Use the minimum supported Rust version + if: matrix.rust == 'msrv' + run: | + msrv="$(cargo metadata --format-version 1 --no-deps | jq -r '.packages | map(.rust_version) | map(values) | min')" + rustup override set $msrv + rustup component add clippy --toolchain $msrv - run: rustup update + - run: cargo version - run: rustup target add ${{ matrix.sys.target }} - run: rustup target add wasm32-unknown-unknown - if: matrix.target == 'aarch64-unknown-linux-gnu' run: sudo apt-get update && sudo apt-get -y install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu - - uses: stellar/binaries@v12 + - uses: stellar/binaries@v18 with: name: cargo-hack - version: 0.5.16 + version: 0.5.28 - if: startsWith(matrix.sys.target, 'x86_64') name: Clear test snapshots for checking no diffs exists after test run run: rm -fr **/test_snapshots