@@ -12,42 +12,51 @@ jobs:
1212 beta,
1313 # 1.41.1 is MSRV for Rust-Lightning, lightning-invoice, and lightning-persister
1414 1.41.1,
15- # 1.45.2 is MSRV for lightning-net-tokio, lightning-block-sync, and coverage generation
15+ # 1.45.2 is MSRV for lightning-net-tokio, lightning-block-sync, lightning-background-processor, and coverage generation
1616 1.45.2,
1717 # 1.47.0 will be the MSRV for no-std builds using hashbrown once core2 is updated
1818 1.47.0]
1919 include :
2020 - toolchain : stable
2121 build-net-tokio : true
2222 build-no-std : true
23+ build-futures : true
2324 - toolchain : stable
2425 platform : macos-latest
2526 build-net-tokio : true
2627 build-no-std : true
28+ build-futures : true
2729 - toolchain : beta
2830 platform : macos-latest
2931 build-net-tokio : true
3032 build-no-std : true
33+ build-futures : true
3134 - toolchain : stable
3235 platform : windows-latest
3336 build-net-tokio : true
3437 build-no-std : true
38+ build-futures : true
3539 - toolchain : beta
3640 platform : windows-latest
3741 build-net-tokio : true
3842 build-no-std : true
43+ build-futures : true
3944 - toolchain : beta
4045 build-net-tokio : true
4146 build-no-std : true
47+ build-futures : true
4248 - toolchain : 1.41.1
4349 build-no-std : false
4450 test-log-variants : true
51+ build-futures : false
4552 - toolchain : 1.45.2
4653 build-net-old-tokio : true
4754 build-net-tokio : true
4855 build-no-std : false
56+ build-futures : true
4957 coverage : true
5058 - toolchain : 1.47.0
59+ build-futures : true
5160 build-no-std : true
5261 runs-on : ${{ matrix.platform }}
5362 steps :
@@ -109,7 +118,7 @@ jobs:
109118 - name : Test on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
110119 if : matrix.coverage
111120 run : RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
112- - name : Test on no-std bullds Rust ${{ matrix.toolchain }}
121+ - name : Test no-std builds on Rust ${{ matrix.toolchain }}
113122 if : " matrix.build-no-std && !matrix.coverage"
114123 shell : bash # Default on Winblows is powershell
115124 run : |
@@ -140,15 +149,26 @@ jobs:
140149 run : |
141150 cd lightning
142151 RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --no-default-features --features no-std
143- cd ..
152+ - name : Test futures builds on Rust ${{ matrix.toolchain }}
153+ if : " matrix.build-futures && !matrix.coverage"
154+ shell : bash # Default on Winblows is powershell
155+ run : |
156+ cd lightning-background-processor
157+ cargo test --verbose --color always --no-default-features --features futures
158+ - name : Test futures builds on Rust ${{ matrix.toolchain }} and full code-linking for coverage generation
159+ if : " matrix.build-futures && matrix.coverage"
160+ shell : bash # Default on Winblows is powershell
161+ run : |
162+ cd lightning-background-processor
163+ RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --no-default-features --features futures
144164 - name : Test on Rust ${{ matrix.toolchain }}
145165 if : " ! matrix.build-net-tokio"
146166 run : |
147- cargo test --verbose --color always -p lightning
148- cargo test --verbose --color always -p lightning-invoice
149- cargo test --verbose --color always -p lightning-rapid-gossip-sync
150- cargo build --verbose --color always -p lightning-persister
151- cargo build --verbose --color always -p lightning-background-processor
167+ cargo test --verbose --color always -p lightning
168+ cargo test --verbose --color always -p lightning-invoice
169+ cargo test --verbose --color always -p lightning-rapid-gossip-sync
170+ cargo test --verbose --color always -p lightning-persister
171+ cargo test --verbose --color always -p lightning-background-processor
152172 - name : Test C Bindings Modifications on Rust ${{ matrix.toolchain }}
153173 if : " ! matrix.build-net-tokio"
154174 run : |
@@ -299,6 +319,7 @@ jobs:
299319 run : |
300320 cargo check --release
301321 cargo check --no-default-features --features=no-std --release
322+ cargo check --no-default-features --features=futures --release
302323 cargo doc --release
303324
304325 fuzz :
0 commit comments