partial fix 2023-03-fix-build
authorMatt Corallo <git@bluematt.me>
Tue, 28 Mar 2023 01:28:27 +0000 (01:28 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 28 Mar 2023 01:32:58 +0000 (01:32 +0000)
ci/ci-tests.sh

index 3705067c245c36fef82d4371d74efd62d64359da..a27cf735fd39597b1cd902408c2940edaf3d1842 100755 (executable)
@@ -4,6 +4,8 @@ set -eox pipefail
 RUSTC_MINOR_VERSION=$(rustc --version | awk '{ split($2,a,"."); print a[2] }')
 HOST_PLATFORM="$(rustc --version --verbose | grep "host:" | awk '{ print $2 }')"
 
+# Tokio MSRV on versions newer than 1.26 is rustc 1.56
+[ "$RUSTC_MINOR_VERSION" -lt 56 ] && cargo update -p tokio --precise "1.26.0" --verbose
 # Tokio MSRV on versions newer than 1.14 is rustc 1.49
 [ "$RUSTC_MINOR_VERSION" -lt 49 ] && cargo update -p tokio --precise "1.14.0" --verbose
 [ "$LDK_COVERAGE_BUILD" != "" ] && export RUSTFLAGS="-C link-dead-code"