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
--- /dev/null
+#!/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"
+++ /dev/null
-#!/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!"