@@ -72,23 +72,23 @@ jobs:
7272 echo "BITCOIND_EXE=$( pwd )/bin/bitcoind-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
7373 echo "ELECTRS_EXE=$( pwd )/bin/electrs-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
7474 - name : Build on Rust ${{ matrix.toolchain }}
75- run : cargo build --verbose --color always
75+ run : RUSTFLAGS="--cfg hrn_tests" cargo build --verbose --color always
7676 - name : Build with UniFFI support on Rust ${{ matrix.toolchain }}
7777 if : matrix.build-uniffi
78- run : cargo build --features uniffi --verbose --color always
78+ run : RUSTFLAGS="--cfg hrn_tests" cargo build --features uniffi --verbose --color always
7979 - name : Check release build on Rust ${{ matrix.toolchain }}
80- run : cargo check --release --verbose --color always
80+ run : RUSTFLAGS="--cfg hrn_tests" cargo check --release --verbose --color always
8181 - name : Check release build with UniFFI support on Rust ${{ matrix.toolchain }}
8282 if : matrix.build-uniffi
83- run : cargo check --release --features uniffi --verbose --color always
83+ run : RUSTFLAGS="--cfg hrn_tests" cargo check --release --features uniffi --verbose --color always
8484 - name : Test on Rust ${{ matrix.toolchain }}
8585 if : " matrix.platform != 'windows-latest'"
8686 run : |
87- RUSTFLAGS="--cfg no_download --cfg cycle_tests" cargo test
87+ RUSTFLAGS="--cfg no_download --cfg cycle_tests --cfg hrn_tests " cargo test
8888 - name : Test with UniFFI support on Rust ${{ matrix.toolchain }}
8989 if : " matrix.platform != 'windows-latest' && matrix.build-uniffi"
9090 run : |
91- RUSTFLAGS="--cfg no_download --cfg cycle_tests" cargo test --features uniffi
91+ RUSTFLAGS="--cfg no_download --cfg cycle_tests --cfg hrn_tests " cargo test --features uniffi
9292
9393 linting :
9494 name : Linting
@@ -102,8 +102,8 @@ jobs:
102102 rustup component add clippy
103103 - name : Ban `unwrap` in library code
104104 run : |
105- cargo clippy --lib --verbose --color always -- -A warnings -D clippy::unwrap_used -A clippy::tabs_in_doc_comments
106- cargo clippy --lib --features uniffi --verbose --color always -- -A warnings -D clippy::unwrap_used -A clippy::tabs_in_doc_comments
105+ RUSTFLAGS="--cfg hrn_tests" cargo clippy --lib --verbose --color always -- -A warnings -D clippy::unwrap_used -A clippy::tabs_in_doc_comments
106+ RUSTFLAGS="--cfg hrn_tests" cargo clippy --lib --features uniffi --verbose --color always -- -A warnings -D clippy::unwrap_used -A clippy::tabs_in_doc_comments
107107
108108 doc :
109109 name : Documentation
0 commit comments