]> Untitled Git - bdk-cli/commitdiff
ci: with msrv 1.75 pin minreq to 2.13.2
authorSteve Myers <steve@notmandatory.org>
Wed, 12 Mar 2025 17:30:34 +0000 (12:30 -0500)
committerSteve Myers <steve@notmandatory.org>
Wed, 12 Mar 2025 17:30:34 +0000 (12:30 -0500)
.github/workflows/cont_integration.yml
ci/pin-msrv.sh [new file with mode: 0755]
ci/test_features.sh [deleted file]

index e21bdf03e51e5421e6ce6099c246e03cf0ae67e3..099f93ea42d7c5d0cbafe5efeba0c0bf4b5f190d 100644 (file)
@@ -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 (executable)
index 0000000..3ad316e
--- /dev/null
@@ -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 (executable)
index ecef034..0000000
+++ /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!"