@@ -12,52 +12,68 @@ jobs:
12
12
beta,
13
13
# 1.41.1 is MSRV for Rust-Lightning, lightning-invoice, and lightning-persister
14
14
1.41.1,
15
- # 1.45.2 is MSRV for lightning-net-tokio, lightning-block-sync, lightning-background-processor, and coverage generation
15
+ # 1.45.2 is MSRV for lightning-net-tokio, lightning-block-sync, lightning-background-processor
16
16
1.45.2,
17
17
# 1.47.0 will be the MSRV for no-std builds using hashbrown once core2 is updated
18
- 1.47.0]
18
+ 1.47.0,
19
+ # 1.59.0 is the MSRV for lightning-transaction-sync
20
+ 1.59.0]
19
21
include :
20
22
- toolchain : stable
21
23
build-net-tokio : true
22
24
build-no-std : true
23
25
build-futures : true
26
+ build-tx-sync : true
27
+ coverage : true
24
28
- toolchain : stable
25
29
platform : macos-latest
26
30
build-net-tokio : true
27
31
build-no-std : true
28
32
build-futures : true
33
+ build-tx-sync : true
29
34
- toolchain : beta
30
35
platform : macos-latest
31
36
build-net-tokio : true
32
37
build-no-std : true
33
38
build-futures : true
39
+ build-tx-sync : true
34
40
- toolchain : stable
35
41
platform : windows-latest
36
42
build-net-tokio : true
37
43
build-no-std : true
38
44
build-futures : true
45
+ build-tx-sync : false
39
46
- toolchain : beta
40
47
platform : windows-latest
41
48
build-net-tokio : true
42
49
build-no-std : true
43
50
build-futures : true
51
+ build-tx-sync : false
44
52
- toolchain : beta
45
53
build-net-tokio : true
46
54
build-no-std : true
47
55
build-futures : true
56
+ build-tx-sync : true
48
57
- toolchain : 1.41.1
49
58
build-no-std : false
50
59
test-log-variants : true
51
60
build-futures : false
61
+ build-tx-sync : false
52
62
- toolchain : 1.45.2
53
63
build-net-old-tokio : true
54
64
build-net-tokio : true
55
65
build-no-std : false
56
66
build-futures : true
57
- coverage : true
67
+ build-tx-sync : false
58
68
- toolchain : 1.47.0
59
69
build-futures : true
60
70
build-no-std : true
71
+ build-tx-sync : false
72
+ - toolchain : 1.59.0
73
+ build-net-tokio : false
74
+ build-no-std : false
75
+ build-futures : false
76
+ build-tx-sync : true
61
77
runs-on : ${{ matrix.platform }}
62
78
steps :
63
79
- name : Checkout source code
@@ -73,10 +89,10 @@ jobs:
73
89
run : cargo update -p tokio --precise "1.14.0" --verbose
74
90
env :
75
91
CARGO_NET_GIT_FETCH_WITH_CLI : " true"
76
- - name : Build on Rust ${{ matrix.toolchain }} with net-tokio
77
- if : " matrix.build-net-tokio && !matrix.coverage"
92
+ - name : Build on Rust ${{ matrix.toolchain }} with net-tokio and tx-sync
93
+ if : " matrix.build-net-tokio && !matrix.coverage && matrix.build-tx-sync "
78
94
run : cargo build --verbose --color always
79
- - name : Build on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
95
+ - name : Build on Rust ${{ matrix.toolchain }} with net-tokio, tx-sync, and full code-linking for coverage generation
80
96
if : matrix.coverage
81
97
run : RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always
82
98
- name : Build on Rust ${{ matrix.toolchain }}
@@ -108,14 +124,32 @@ jobs:
108
124
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client
109
125
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client
110
126
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client,tokio
127
+ - name : Build Transaction Sync Clients on Rust ${{ matrix.toolchain }} with features
128
+ if : " matrix.build-tx-sync && !matrix.coverage"
129
+ run : |
130
+ cd lightning-transaction-sync
131
+ cargo build --verbose --color always --features esplora-blocking
132
+ cargo build --verbose --color always --features esplora-async
133
+ - name : Build transaction sync clients on Rust ${{ matrix.toolchain }} with features and full code-linking for coverage generation
134
+ if : " matrix.build-tx-sync && matrix.coverage"
135
+ run : |
136
+ cd lightning-transaction-sync
137
+ RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features esplora-blocking
138
+ RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features esplora-async
139
+ - name : Test transaction sync clients on Rust ${{ matrix.toolchain }} with features
140
+ if : " matrix.build-tx-sync"
141
+ run : |
142
+ cd lightning-transaction-sync
143
+ cargo test --verbose --color always --features esplora-blocking
144
+ cargo test --verbose --color always --features esplora-async
111
145
- name : Test backtrace-debug builds on Rust ${{ matrix.toolchain }}
112
146
if : " matrix.toolchain == 'stable'"
113
147
run : |
114
148
cd lightning && cargo test --verbose --color always --features backtrace
115
149
- name : Test on Rust ${{ matrix.toolchain }} with net-tokio
116
- if : " matrix.build-net-tokio && !matrix.coverage"
150
+ if : " matrix.build-net-tokio && !matrix.coverage && matrix.build-tx-sync "
117
151
run : cargo test --verbose --color always
118
- - name : Test on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
152
+ - name : Test on Rust ${{ matrix.toolchain }} with net-tokio, tx-sync, and full code-linking for coverage generation
119
153
if : matrix.coverage
120
154
run : RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
121
155
- name : Test no-std builds on Rust ${{ matrix.toolchain }}
@@ -349,7 +383,7 @@ jobs:
349
383
linting :
350
384
runs-on : ubuntu-latest
351
385
env :
352
- TOOLCHAIN : 1.47.0
386
+ TOOLCHAIN : stable
353
387
steps :
354
388
- name : Checkout source code
355
389
uses : actions/checkout@v3
0 commit comments