Skip to content

Commit 2a9b0dc

Browse files
committed
f Move test to own step + nits
1 parent f5f8f31 commit 2a9b0dc

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
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
@@ -36,18 +38,23 @@ jobs:
3638
platform: windows-latest
3739
build-net-tokio: true
3840
build-no-std: true
41+
build-futures: false
3942
- toolchain: beta
4043
build-net-tokio: true
4144
build-no-std: true
45+
build-futures: true
4246
- toolchain: 1.41.1
4347
build-no-std: false
4448
test-log-variants: true
49+
build-futures: false
4550
- toolchain: 1.45.2
4651
build-net-old-tokio: true
4752
build-net-tokio: true
4853
build-no-std: false
54+
build-futures: false
4955
coverage: true
5056
- toolchain: 1.47.0
57+
build-futures: true
5158
build-no-std: true
5259
runs-on: ${{ matrix.platform }}
5360
steps:
@@ -109,7 +116,7 @@ jobs:
109116
- name: Test on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
110117
if: matrix.coverage
111118
run: RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
112-
- name: Test on no-std bullds Rust ${{ matrix.toolchain }}
119+
- name: Test no-std builds on Rust ${{ matrix.toolchain }}
113120
if: "matrix.build-no-std && !matrix.coverage"
114121
shell: bash # Default on Winblows is powershell
115122
run: |
@@ -131,13 +138,17 @@ jobs:
131138
cd ..
132139
cd no-std-check
133140
cargo check --verbose --color always
134-
cd ..
135141
- name: Test on no-std builds Rust ${{ matrix.toolchain }} and full code-linking for coverage generation
136142
if: "matrix.build-no-std && matrix.coverage"
137143
run: |
138144
cd lightning
139145
RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --no-default-features --features no-std
140-
cd ..
146+
- name: Test futures builds on Rust ${{ matrix.toolchain }}
147+
if: "matrix.build-futures && !matrix.coverage"
148+
shell: bash # Default on Winblows is powershell
149+
run: |
150+
cd lightning-background-processor
151+
cargo test --verbose --color always --no-default-features --features futures
141152
- name: Test on Rust ${{ matrix.toolchain }}
142153
if: "! matrix.build-net-tokio"
143154
run: |
@@ -146,7 +157,6 @@ jobs:
146157
cargo test --verbose --color always -p lightning-rapid-gossip-sync
147158
cargo build --verbose --color always -p lightning-persister
148159
cargo build --verbose --color always -p lightning-background-processor
149-
cargo check --verbose --color always -p lightning-background-processor --no-default-features --features=futures
150160
- name: Test C Bindings Modifications on Rust ${{ matrix.toolchain }}
151161
if: "! matrix.build-net-tokio"
152162
run: |

0 commit comments

Comments
 (0)