From af505783a07b566570f531ca13687495d64082e5 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 5 Jan 2024 12:09:48 +1000 Subject: [PATCH] simpllify --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ddf697ee..a56af0de 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -62,7 +62,7 @@ jobs: - name: Use the minimum supported Rust version if: matrix.rust == 'msrv' run: | - msrv="$(cargo metadata --format-version 1 | jq -r '.packages | .[] | select(.name == "stellar-xdr") | .rust_version')" + msrv="$(cargo metadata --format-version 1 --no-deps | jq -r '.packages | min | .rust_version')" rustup override set $msrv rustup component add clippy --toolchain $msrv - name: Disable warnings and clippy checks on latest @@ -96,7 +96,7 @@ jobs: - name: Use the minimum supported Rust version if: matrix.rust == 'msrv' run: | - msrv="$(cargo metadata --format-version 1 | jq -r '.packages | .[] | select(.name == "stellar-xdr") | .rust_version')" + msrv="$(cargo metadata --format-version 1 --no-deps | jq -r '.packages | min | .rust_version')" rustup override set $msrv rustup component add clippy --toolchain $msrv - name: Disable warnings and clippy checks on latest