1- name : Continuous Integration Checks
1+ name : CI Checks - Rust Tests
22
33on : [push, pull_request]
44
@@ -46,13 +46,18 @@ jobs:
4646 cargo update -p proptest --precise "1.2.0" --verbose # proptest 1.3.0 requires rustc 1.64.0
4747 cargo update -p reqwest --precise "0.11.20" --verbose # reqwest 0.11.21 broke 1.63.0 MSRV
4848 cargo update -p regex --precise "1.9.6" --verbose # regex 1.10.0 requires rustc 1.65.0
49- cargo update -p jobserver --precise "0.1.26" --verbose # jobserver 0.1.27 requires rustc 1.66.0
50- cargo update -p zstd-sys --precise "2.0.8+zstd.1.5.5" --verbose # zstd-sys 2.0.9+zstd.1.5.5 requires rustc 1.64.0
51- cargo update -p petgraph --precise "0.6.3" --verbose # petgraph v0.6.4, requires rustc 1.64 or newer
5249 cargo update -p home --precise "0.5.5" --verbose # home v0.5.9, requires rustc 1.70 or newer
5350 - name : Set RUSTFLAGS to deny warnings
5451 if : " matrix.toolchain == 'stable'"
5552 run : echo "RUSTFLAGS=-D warnings" >> "$GITHUB_ENV"
53+ - name : Download bitcoind/electrs and set environment variables
54+ if : " matrix.platform != 'windows-latest'"
55+ run : |
56+ source ./scripts/download_bitcoind_electrs.sh
57+ cp "$BITCOIND_EXE" "$HOME"/bitcoind
58+ cp "$ELECTRS_EXE" "$HOME"/electrs
59+ echo "BITCOIND_EXE=$HOME/bitcoind" >> "$GITHUB_ENV"
60+ echo "ELECTRS_EXE=$HOME/electrs" >> "$GITHUB_ENV"
5661 - name : Build on Rust ${{ matrix.toolchain }}
5762 run : cargo build --verbose --color always
5863 - name : Build with UniFFI support on Rust ${{ matrix.toolchain }}
@@ -69,10 +74,12 @@ jobs:
6974 run : cargo check --release --features uniffi --verbose --color always
7075 - name : Test on Rust ${{ matrix.toolchain }}
7176 if : " matrix.platform != 'windows-latest'"
72- run : cargo test
77+ run : |
78+ RUSTFLAGS="--cfg no_download" cargo test
7379 - name : Test with UniFFI support on Rust ${{ matrix.toolchain }}
7480 if : " matrix.platform != 'windows-latest' && matrix.build-uniffi"
75- run : cargo test --features uniffi
81+ run : |
82+ RUSTFLAGS="--cfg no_download" cargo test --features uniffi
7683 - name : Check formatting on Rust ${{ matrix.toolchain }}
7784 if : matrix.check-fmt
7885 run : rustup component add rustfmt && cargo fmt --all -- --check
0 commit comments