Skip to content

Commit 2e8f4fe

Browse files
committed
Test no_std instead of just hashbrown
1 parent a0a3a6b commit 2e8f4fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,15 @@ jobs:
9090
if: "matrix.build-no-std && !matrix.coverage"
9191
run: |
9292
cd lightning
93-
cargo test --verbose --color always --features hashbrown
93+
cargo test --verbose --color always --no-default-features --features no_std
94+
# check if there is a conflict between no_std and the default std feature
95+
cargo test --verbose --color always --features no_std
9496
cd ..
9597
- name: Test on no_std bullds Rust ${{ matrix.toolchain }} and full code-linking for coverage generation
9698
if: "matrix.build-no-std && matrix.coverage"
9799
run: |
98100
cd lightning
99-
RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features hashbrown
101+
RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --no-default-features --features no_std
100102
cd ..
101103
- name: Test on Rust ${{ matrix.toolchain }}
102104
if: "! matrix.build-net-tokio"

0 commit comments

Comments
 (0)