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
18
1.47.0]
@@ -21,43 +21,52 @@ jobs:
21
21
build-net-tokio : true
22
22
build-no-std : true
23
23
build-futures : true
24
+ build-tx-sync : true
25
+ coverage : true
24
26
- toolchain : stable
25
27
platform : macos-latest
26
28
build-net-tokio : true
27
29
build-no-std : true
28
30
build-futures : true
31
+ build-tx-sync : true
29
32
- toolchain : beta
30
33
platform : macos-latest
31
34
build-net-tokio : true
32
35
build-no-std : true
33
36
build-futures : true
37
+ build-tx-sync : true
34
38
- toolchain : stable
35
39
platform : windows-latest
36
40
build-net-tokio : true
37
41
build-no-std : true
38
42
build-futures : true
43
+ build-tx-sync : false
39
44
- toolchain : beta
40
45
platform : windows-latest
41
46
build-net-tokio : true
42
47
build-no-std : true
43
48
build-futures : true
49
+ build-tx-sync : false
44
50
- toolchain : beta
45
51
build-net-tokio : true
46
52
build-no-std : true
47
53
build-futures : true
54
+ build-tx-sync : true
48
55
- toolchain : 1.41.1
49
56
build-no-std : false
50
57
test-log-variants : true
51
58
build-futures : false
59
+ build-tx-sync : false
52
60
- toolchain : 1.45.2
53
61
build-net-old-tokio : true
54
62
build-net-tokio : true
55
63
build-no-std : false
56
64
build-futures : true
57
- coverage : true
65
+ build-tx-sync : false
58
66
- toolchain : 1.47.0
59
67
build-futures : true
60
68
build-no-std : true
69
+ build-tx-sync : false
61
70
runs-on : ${{ matrix.platform }}
62
71
steps :
63
72
- name : Checkout source code
@@ -73,10 +82,10 @@ jobs:
73
82
run : cargo update -p tokio --precise "1.14.0" --verbose
74
83
env :
75
84
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"
85
+ - name : Build on Rust ${{ matrix.toolchain }} with net-tokio and tx-sync
86
+ if : " matrix.build-net-tokio && !matrix.coverage && matrix.build-tx-sync "
78
87
run : cargo build --verbose --color always
79
- - name : Build on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
88
+ - name : Build on Rust ${{ matrix.toolchain }} with net-tokio, tx-sync, and full code-linking for coverage generation
80
89
if : matrix.coverage
81
90
run : RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always
82
91
- name : Build on Rust ${{ matrix.toolchain }}
@@ -108,14 +117,32 @@ jobs:
108
117
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client
109
118
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client
110
119
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client,tokio
120
+ - name : Build Transaction Sync Clients on Rust ${{ matrix.toolchain }} with features
121
+ if : " matrix.build-tx-sync && !matrix.coverage"
122
+ run : |
123
+ cd lightning-transaction-sync
124
+ cargo build --verbose --color always --features esplora-blocking
125
+ cargo build --verbose --color always --features esplora-async
126
+ - name : Build transaction sync clients on Rust ${{ matrix.toolchain }} with features and full code-linking for coverage generation
127
+ if : " matrix.build-tx-sync && matrix.coverage"
128
+ run : |
129
+ cd lightning-transaction-sync
130
+ RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features esplora-blocking
131
+ RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features esplora-async
132
+ - name : Test transaction sync clients on Rust ${{ matrix.toolchain }} with features
133
+ if : " matrix.build-tx-sync && !matrix.coverage"
134
+ run : |
135
+ cd lightning-transaction-sync
136
+ cargo test --verbose --color always --features esplora-blocking
137
+ cargo test --verbose --color always --features esplora-async
111
138
- name : Test backtrace-debug builds on Rust ${{ matrix.toolchain }}
112
139
if : " matrix.toolchain == 'stable'"
113
140
run : |
114
141
cd lightning && cargo test --verbose --color always --features backtrace
115
142
- name : Test on Rust ${{ matrix.toolchain }} with net-tokio
116
- if : " matrix.build-net-tokio && !matrix.coverage"
143
+ if : " matrix.build-net-tokio && !matrix.coverage && matrix.build-tx-sync "
117
144
run : cargo test --verbose --color always
118
- - name : Test on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
145
+ - name : Test on Rust ${{ matrix.toolchain }} with net-tokio, tx-sync, and full code-linking for coverage generation
119
146
if : matrix.coverage
120
147
run : RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
121
148
- name : Test no-std builds on Rust ${{ matrix.toolchain }}
@@ -349,7 +376,7 @@ jobs:
349
376
linting :
350
377
runs-on : ubuntu-latest
351
378
env :
352
- TOOLCHAIN : 1.47.0
379
+ TOOLCHAIN : stable
353
380
steps :
354
381
- name : Checkout source code
355
382
uses : actions/checkout@v3
0 commit comments