@@ -14,39 +14,33 @@ jobs:
14
14
1.48.0]
15
15
include :
16
16
- toolchain : stable
17
- build-net-tokio : true
18
17
build-no-std : true
19
18
build-futures : true
20
19
build-tx-sync : true
21
20
coverage : true
22
21
- toolchain : stable
23
22
platform : macos-latest
24
- build-net-tokio : true
25
23
build-no-std : true
26
24
build-futures : true
27
25
build-tx-sync : true
28
26
- toolchain : stable
29
27
test-custom-message : true
30
28
- toolchain : beta
31
29
platform : macos-latest
32
- build-net-tokio : true
33
30
build-no-std : true
34
31
build-futures : true
35
32
build-tx-sync : true
36
33
- toolchain : stable
37
34
platform : windows-latest
38
- build-net-tokio : true
39
35
build-no-std : true
40
36
build-futures : true
41
37
build-tx-sync : false
42
38
- toolchain : beta
43
39
platform : windows-latest
44
- build-net-tokio : true
45
40
build-no-std : true
46
41
build-futures : true
47
42
build-tx-sync : false
48
43
- toolchain : beta
49
- build-net-tokio : true
50
44
build-no-std : true
51
45
build-futures : true
52
46
build-tx-sync : true
67
61
override : true
68
62
profile : minimal
69
63
- name : Pin tokio to 1.14 for Rust 1.45
70
- if : " matrix.build-net-old-tokio"
71
64
run : cargo update -p tokio --precise "1.14.0" --verbose
72
65
env :
73
66
CARGO_NET_GIT_FETCH_WITH_CLI : " true"
@@ -77,17 +70,11 @@ jobs:
77
70
env :
78
71
CARGO_NET_GIT_FETCH_WITH_CLI : " true"
79
72
- name : Build on Rust ${{ matrix.toolchain }} with net-tokio
80
- if : " matrix.build-net-tokio && !matrix.coverage"
73
+ if : " !matrix.coverage"
81
74
run : cargo build --verbose --color always
82
75
- name : Build on Rust ${{ matrix.toolchain }} with net-tokio, and full code-linking for coverage generation
83
76
if : matrix.coverage
84
77
run : RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always
85
- - name : Build on Rust ${{ matrix.toolchain }}
86
- if : " ! matrix.build-net-tokio"
87
- run : |
88
- cargo build --verbose --color always -p lightning
89
- cargo build --verbose --color always -p lightning-invoice
90
- cargo build --verbose --color always -p lightning-persister
91
78
- name : Build on Rust ${{ matrix.toolchain }} with all Log-Limiting features
92
79
if : matrix.test-log-variants
93
80
run : |
96
83
cargo build --verbose --color always --features $FEATURE
97
84
done
98
85
- name : Build Block Sync Clients on Rust ${{ matrix.toolchain }} with features
99
- if : " matrix.build-net-tokio && !matrix.coverage"
86
+ if : " !matrix.coverage"
100
87
run : |
101
88
cd lightning-block-sync
102
89
cargo build --verbose --color always --features rest-client
@@ -138,7 +125,7 @@ jobs:
138
125
run : |
139
126
cd lightning && RUST_BACKTRACE=1 cargo test --verbose --color always --features backtrace
140
127
- name : Test on Rust ${{ matrix.toolchain }} with net-tokio
141
- if : " matrix.build-net-tokio && !matrix.coverage"
128
+ if : " !matrix.coverage"
142
129
run : cargo test --verbose --color always
143
130
- name : Test on Rust ${{ matrix.toolchain }} with net-tokio, and full code-linking for coverage generation
144
131
if : matrix.coverage
@@ -186,23 +173,8 @@ jobs:
186
173
run : |
187
174
cd lightning-background-processor
188
175
RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --no-default-features --features futures
189
- - name : Test on Rust ${{ matrix.toolchain }}
190
- if : " ! matrix.build-net-tokio"
191
- run : |
192
- cargo test --verbose --color always -p lightning
193
- cargo test --verbose --color always -p lightning-invoice
194
- cargo test --verbose --color always -p lightning-rapid-gossip-sync
195
- cargo test --verbose --color always -p lightning-persister
196
- cargo test --verbose --color always -p lightning-background-processor
197
- - name : Test C Bindings Modifications on Rust ${{ matrix.toolchain }}
198
- if : " ! matrix.build-net-tokio"
199
- run : |
200
- RUSTFLAGS="--cfg=c_bindings" cargo test --verbose --color always -p lightning
201
- RUSTFLAGS="--cfg=c_bindings" cargo test --verbose --color always -p lightning-invoice
202
- RUSTFLAGS="--cfg=c_bindings" cargo build --verbose --color always -p lightning-persister
203
- RUSTFLAGS="--cfg=c_bindings" cargo build --verbose --color always -p lightning-background-processor
204
176
- name : Test Block Sync Clients on Rust ${{ matrix.toolchain }} with features
205
- if : " matrix.build-net-tokio && !matrix.coverage"
177
+ if : " !matrix.coverage"
206
178
run : |
207
179
cd lightning-block-sync
208
180
cargo test --verbose --color always --features rest-client
0 commit comments