From 4fb4de38f8e412a7acdaf10160b9f36cb3a5aa39 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Mon, 10 Jun 2024 19:47:55 +0000 Subject: [PATCH] ci: pin cc for MSRV --- .github/workflows/rust.yml | 2 +- contrib/test.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c7ff0a3..5ef9966 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -107,4 +107,4 @@ jobs: toolchain: ${{ matrix.rust }} override: true - name: Running cargo in release mode - run: cargo test --features="global-context" --release + run: cargo update -p cc --precise 1.0.94 && cargo test --features="global-context" --release diff --git a/contrib/test.sh b/contrib/test.sh index 5a32f56..60abe44 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -8,6 +8,11 @@ rustc --version # Make all cargo invocations verbose export CARGO_TERM_VERBOSE=true +# Pin dependencies as required if we are using MSRV toolchain. +if cargo --version | grep "1\.56"; then + cargo update -p cc --precise 1.0.94 +fi + # Defaults / sanity checks cargo build --all cargo test --all