From: Steve Myers Date: Wed, 12 Mar 2025 17:30:34 +0000 (-0500) Subject: ci: with msrv 1.75 pin minreq to 2.13.2 X-Git-Tag: v1.0.0~7^2~4 X-Git-Url: http://internal-gitweb-vhost/trait.impl/bitcoin/psbt/trait.GetKey.js?a=commitdiff_plain;h=eb947fc30d26c4dcc4f0ba5082223e42c768a4cf;p=bdk-cli ci: with msrv 1.75 pin minreq to 2.13.2 --- diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index e21bdf0..099f93e 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -43,10 +43,7 @@ jobs: cargo update - name: If Rust 1.75 pin dependencies if: matrix.rust == '1.75.0' - run: | - cargo update -p home --precise "0.5.9" - cargo update -p native-tls --precise "0.2.13" - cargo update -p idna_adapter --precise "1.1.0" + run: ./ci/pin-msrv.sh - name: Build run: cargo build ${{ matrix.features }} - name: Clippy diff --git a/ci/pin-msrv.sh b/ci/pin-msrv.sh new file mode 100755 index 0000000..3ad316e --- /dev/null +++ b/ci/pin-msrv.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -x +set -euo pipefail + +# Pin dependencies for MSRV + +# To pin deps, switch toolchain to MSRV and execute the below updates + +# cargo clean +# rustup override set 1.75.0 +# rm Cargo.lock +# cargo update + +cargo update -p home --precise "0.5.9" +cargo update -p native-tls --precise "0.2.13" +cargo update -p idna_adapter --precise "1.1.0" +cargo update -p minreq --precise "2.13.2" diff --git a/ci/test_features.sh b/ci/test_features.sh deleted file mode 100755 index ecef034..0000000 --- a/ci/test_features.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -feature_combinations=( - "default" - "repl" - "sqlite" - "electrum" - "esplora" - "rpc" - "verify" - "compiler" - "repl sqlite" - "repl electrum" - "repl esplora" - "repl verify" - "repl compiler" - "repl rpc" - "verify rpc" - "sqlite electrum" - "sqlite esplora" - "sqlite verify" - "sqlite compiler" - "verify esplora compiler" - "verify esplora repl" - "verify compiler repl" - "verify esplora compiler repl" - "rpc compiler electrum" - "sqlite rpc compiler" -) - -for features in "${feature_combinations[@]}"; do - echo "Testing with features: $features" - - if ! cargo build --features "$features"; then - echo "Build failed with features: $features" - exit 1 - fi - - if ! cargo test --features "$features"; then - echo "Tests failed with features: $features" - exit 1 - fi - - echo "Tests passed with features: $features" - echo "----------------------------------------" -done - -echo "All feature combinations tested successfully!"