66 build :
77 strategy :
88 matrix :
9+ platform : [ ubuntu-latest ]
910 toolchain : [ stable,
1011 beta,
1112 # 1.30.0 is MSRV for Rust-Lightning
@@ -17,13 +18,18 @@ jobs:
1718 include :
1819 - toolchain : stable
1920 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
2027 - toolchain : beta
2128 build-net-tokio : true
2229 - toolchain : 1.39.0
2330 build-net-tokio : true
2431 coverage : true
25- - toolchain : 1.34.2
26- runs-on : ubuntu-latest
32+ runs-on : ${{ matrix.platform }}
2733 steps :
2834 - name : Checkout source code
2935 uses : actions/checkout@v2
@@ -34,17 +40,23 @@ jobs:
3440 override : true
3541 profile : minimal
3642 - 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
3847 run : RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always
3948 - name : Build on Rust ${{ matrix.toolchain }}
4049 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
4251 - 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
4456 run : RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
4557 - name : Test on Rust ${{ matrix.toolchain }}
4658 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
4860 - name : Install deps for kcov
4961 if : matrix.coverage
5062 run : |
0 commit comments