Skip to content

Commit 4cb8ee9

Browse files
authored
fix(ci): Also test iroh-cli for cargo features (#2122)
## Description We really ought to use something like cargo-metadata to pull this information from the cargo.toml file. Maybe one day one of us will be motivated enough to do this. ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant.
1 parent 9ad5835 commit 4cb8ee9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/tests.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ env:
2323
RUSTFLAGS: -Dwarnings
2424
RUSTDOCFLAGS: -Dwarnings
2525
SCCACHE_CACHE_SIZE: "50G"
26-
CRATES_LIST: "iroh,iroh-bytes,iroh-gossip,iroh-metrics,iroh-net,iroh-sync,iroh-test"
26+
CRATES_LIST: "iroh,iroh-bytes,iroh-gossip,iroh-metrics,iroh-net,iroh-sync,iroh-test,iroh-cli"
2727

2828
jobs:
2929
build_and_test_nix:
@@ -92,7 +92,12 @@ jobs:
9292
for i in ${CRATES_LIST//,/ }
9393
do
9494
echo "Checking $i $FEATURES"
95-
cargo check -p $i $FEATURES --lib --bins
95+
if [ $i = "iroh-cli" ]; then
96+
targets="--bins"
97+
else
98+
targets="--lib --bins"
99+
fi
100+
cargo check -p $i $FEATURES $targets
96101
done
97102
env:
98103
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}

0 commit comments

Comments
 (0)