Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Dec 20, 2023
1 parent ecba118 commit 9aee0e1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ jobs:
- name: Set RUSTFLAGS to deny warnings
if: "matrix.toolchain == 'stable'"
run: echo "RUSTFLAGS=-D warnings" >> "$GITHUB_ENV"
- name: Download bitcoind/electrs and set environment variables
if: "matrix.platform != 'windows-latest'"
run: |
source ./scripts/download_bitcoind_electrs.sh
echo "BITCOIND_EXE=$BITCOIND_EXE" >> "$GITHUB_ENV"
echo "ELECTRS_EXE=$ELECTRS_EXE" >> "$GITHUB_ENV"
- name: Build on Rust ${{ matrix.toolchain }}
run: cargo build --verbose --color always
- name: Build with UniFFI support on Rust ${{ matrix.toolchain }}
Expand All @@ -67,13 +73,15 @@ jobs:
- name: Test on Rust ${{ matrix.toolchain }}
if: "matrix.platform != 'windows-latest'"
run: |
source ./scripts/download_bitcoind_electrs.sh
echo "BITCOIND_EXE: $BITCOIND_EXE"
echo "ELECTRS_EXE: $ELECTRS_EXE"
RUSTFLAGS="--cfg no_download" cargo test
- name: Test with UniFFI support on Rust ${{ matrix.toolchain }}
if: "matrix.platform != 'windows-latest' && matrix.build-uniffi"
run: RUSTFLAGS="--cfg no_download" cargo test --features uniffi
run: |
echo "BITCOIND_EXE: $BITCOIND_EXE"
echo "ELECTRS_EXE: $ELECTRS_EXE"
RUSTFLAGS="--cfg no_download" cargo test --features uniffi
- name: Check formatting on Rust ${{ matrix.toolchain }}
if: matrix.check-fmt
run: rustup component add rustfmt && cargo fmt --all -- --check

0 comments on commit 9aee0e1

Please sign in to comment.