4747 run : RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always
4848 - name : Build on Rust ${{ matrix.toolchain }}
4949 if : " ! matrix.build-net-tokio"
50- run : cargo build --verbose --color always -p lightning && cargo build --verbose --color always -p lightning-invoice && cargo build --verbose --color always -p lightning-persister
50+ run : |
51+ cargo build --verbose --color always -p lightning
52+ cargo build --verbose --color always -p lightning-invoice
53+ cargo build --verbose --color always -p lightning-persister
54+ cd lightning
55+ cargo build --verbose --color always --features hashbrown
56+ cd ..
5157 - name : Build Block Sync Clients on Rust ${{ matrix.toolchain }} with features
5258 if : " matrix.build-net-tokio && !matrix.coverage"
5359 run : |
5662 cargo build --verbose --color always --features rpc-client
5763 cargo build --verbose --color always --features rpc-client,rest-client
5864 cargo build --verbose --color always --features rpc-client,rest-client,tokio
65+ cd ../lightning
66+ cargo build --verbose --color always --features hashbrown
5967 cd ..
6068 - name : Build Block Sync Clients on Rust ${{ matrix.toolchain }} with features and full code-linking for coverage generation
6169 if : matrix.coverage
@@ -65,13 +73,21 @@ jobs:
6573 RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client
6674 RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client
6775 RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client,tokio
76+ cd ../lightning
77+ RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features hashbrown
6878 cd ..
6979 - name : Test on Rust ${{ matrix.toolchain }} with net-tokio
7080 if : " matrix.build-net-tokio && !matrix.coverage"
7181 run : cargo test --verbose --color always
7282 - name : Test on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
7383 if : matrix.coverage
7484 run : RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
85+ - name : Test on no_std bullds Rust ${{ matrix.toolchain }}
86+ if : " matrix.build-net-tokio && matrix.toolchain != 1.36.0 && matrix.toolchain != 1.41.0 && matrix.toolchain != 1.45.2"
87+ run : |
88+ cd lightning
89+ RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features hashbrown
90+ cd ..
7591 - name : Test on Rust ${{ matrix.toolchain }}
7692 if : " ! matrix.build-net-tokio"
7793 run : cargo test --verbose --color always -p lightning && cargo test --verbose --color always -p lightning-invoice && cargo build --verbose --color always -p lightning-persister
8399 cargo test --verbose --color always --features rpc-client
84100 cargo test --verbose --color always --features rpc-client,rest-client
85101 cargo test --verbose --color always --features rpc-client,rest-client,tokio
102+ cd ../lightning
103+ cargo test --verbose --color always --features hashbrown
86104 cd ..
87105 - name : Test Block Sync Clients on Rust ${{ matrix.toolchain }} with features and full code-linking for coverage generation
88106 if : matrix.coverage
92110 RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features rpc-client
93111 RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features rpc-client,rest-client
94112 RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features rpc-client,rest-client,tokio
95- cd ..
96113 - name : Install deps for kcov
97114 if : matrix.coverage
98115 run : |
@@ -157,6 +174,7 @@ jobs:
157174 run : |
158175 cd lightning
159176 RUSTFLAGS="--cfg=require_route_graph_test" cargo test
177+ RUSTFLAGS="--cfg=require_route_graph_test" cargo test --features hashbrown
160178 cd ..
161179 - name : Run benchmarks on Rust ${{ matrix.toolchain }}
162180 run : |
0 commit comments