6
6
build :
7
7
strategy :
8
8
matrix :
9
+ platform : [ ubuntu-latest ]
9
10
toolchain : [ stable,
10
11
beta,
11
12
# 1.30.0 is MSRV for Rust-Lightning
@@ -17,13 +18,18 @@ jobs:
17
18
include :
18
19
- toolchain : stable
19
20
build-net-tokio : true
21
+ - toolchain : stable
22
+ platform : macos-latest
23
+ build-net-tokio : true
24
+ - toolchain : stable
25
+ platform : windows-latest
26
+ build-net-tokio : true
20
27
- toolchain : beta
21
28
build-net-tokio : true
22
29
- toolchain : 1.39.0
23
30
build-net-tokio : true
24
31
coverage : true
25
- - toolchain : 1.34.2
26
- runs-on : ubuntu-latest
32
+ runs-on : ${{ matrix.platform }}
27
33
steps :
28
34
- name : Checkout source code
29
35
uses : actions/checkout@v2
@@ -34,17 +40,23 @@ jobs:
34
40
override : true
35
41
profile : minimal
36
42
- name : Build on Rust ${{ matrix.toolchain }} with net-tokio
37
- if : matrix.build-net-tokio
43
+ if : " matrix.build-net-tokio && !matrix.coverage"
44
+ run : cargo build --verbose --color always
45
+ - name : Build on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
46
+ if : matrix.coverage
38
47
run : RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always
39
48
- name : Build on Rust ${{ matrix.toolchain }}
40
49
if : " ! matrix.build-net-tokio"
41
- run : RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always -p lightning
50
+ run : cargo build --verbose --color always -p lightning
42
51
- name : Test on Rust ${{ matrix.toolchain }} with net-tokio
43
- if : matrix.build-net-tokio
52
+ if : " matrix.build-net-tokio && !matrix.coverage"
53
+ run : cargo test --verbose --color always
54
+ - name : Test on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
55
+ if : matrix.coverage
44
56
run : RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
45
57
- name : Test on Rust ${{ matrix.toolchain }}
46
58
if : " ! matrix.build-net-tokio"
47
- run : RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always -p lightning
59
+ run : cargo test --verbose --color always -p lightning
48
60
- name : Install deps for kcov
49
61
if : matrix.coverage
50
62
run : |
0 commit comments