Skip to content

Commit 07e7c25

Browse files
committed
f Move test to own step + nits
1 parent f5f8f31 commit 07e7c25

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ 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
@@ -36,18 +37,23 @@ jobs:
3637
platform: windows-latest
3738
build-net-tokio: true
3839
build-no-std: true
40+
build-futures: false
3941
- toolchain: beta
4042
build-net-tokio: true
4143
build-no-std: true
44+
build-futures: true
4245
- toolchain: 1.41.1
4346
build-no-std: false
4447
test-log-variants: true
48+
build-futures: false
4549
- toolchain: 1.45.2
4650
build-net-old-tokio: true
4751
build-net-tokio: true
4852
build-no-std: false
53+
build-futures: false
4954
coverage: true
5055
- toolchain: 1.47.0
56+
build-futures: true
5157
build-no-std: true
5258
runs-on: ${{ matrix.platform }}
5359
steps:
@@ -109,7 +115,7 @@ jobs:
109115
- name: Test on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
110116
if: matrix.coverage
111117
run: RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
112-
- name: Test on no-std bullds Rust ${{ matrix.toolchain }}
118+
- name: Test no-std builds on Rust ${{ matrix.toolchain }}
113119
if: "matrix.build-no-std && !matrix.coverage"
114120
shell: bash # Default on Winblows is powershell
115121
run: |
@@ -131,13 +137,17 @@ jobs:
131137
cd ..
132138
cd no-std-check
133139
cargo check --verbose --color always
134-
cd ..
135140
- name: Test on no-std builds Rust ${{ matrix.toolchain }} and full code-linking for coverage generation
136141
if: "matrix.build-no-std && matrix.coverage"
137142
run: |
138143
cd lightning
139144
RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --no-default-features --features no-std
140-
cd ..
145+
- name: Test futures builds on Rust ${{ matrix.toolchain }}
146+
if: "matrix.build-futures && !matrix.coverage"
147+
shell: bash # Default on Winblows is powershell
148+
run: |
149+
cd lightning-background-processor
150+
cargo test --verbose --color always --no-default-features --features futures
141151
- name: Test on Rust ${{ matrix.toolchain }}
142152
if: "! matrix.build-net-tokio"
143153
run: |
@@ -146,7 +156,6 @@ jobs:
146156
cargo test --verbose --color always -p lightning-rapid-gossip-sync
147157
cargo build --verbose --color always -p lightning-persister
148158
cargo build --verbose --color always -p lightning-background-processor
149-
cargo check --verbose --color always -p lightning-background-processor --no-default-features --features=futures
150159
- name: Test C Bindings Modifications on Rust ${{ matrix.toolchain }}
151160
if: "! matrix.build-net-tokio"
152161
run: |

0 commit comments

Comments
 (0)