From 894aa130b6cfa2de576c3bc2b6466e09d7de6e14 Mon Sep 17 00:00:00 2001 From: yancy Date: Wed, 9 Aug 2023 21:23:00 +0200 Subject: [PATCH] Add CI test for pinned versions using MSRV --- contrib/test.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/contrib/test.sh b/contrib/test.sh index f06369c8..adee9fdf 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -4,6 +4,21 @@ set -ex CRATES="bitcoin hashes internals fuzz" DEPS="recent minimal" +MSRV="1\.48\.0" + +# Test pinned versions. +if cargo --version | grep ${MSRV}; then + cargo update -p serde_json --precise 1.0.99 + cargo update -p serde --precise 1.0.156 + cargo update -p quote --precise 1.0.30 + cargo update -p proc-macro2 --precise 1.0.63 + cargo update -p serde_test --precise 1.0.175 + + cargo update -p bitcoin:0.30.1 --precise 0.30.0 + + # Build MSRV with pinned versions. + cargo check --all-features --all-targets +fi for dep in $DEPS do