|
13 | 13 | 1.30.0,
|
14 | 14 | # 1.34.2 is Debian stable
|
15 | 15 | 1.34.2,
|
16 |
| - # 1.45.2 is MSRV for lightning-net-tokio and generates coverage |
| 16 | + # 1.45.2 is MSRV for lightning-net-tokio, lightning-block-sync, and coverage generation |
17 | 17 | 1.45.2]
|
18 | 18 | include:
|
19 | 19 | - toolchain: stable
|
|
48 | 48 | - name: Build on Rust ${{ matrix.toolchain }}
|
49 | 49 | if: "! matrix.build-net-tokio"
|
50 | 50 | run: cargo build --verbose --color always -p lightning
|
| 51 | + - name: Build Block Sync Clients on Rust ${{ matrix.toolchain }} with features |
| 52 | + if: "matrix.build-net-tokio && !matrix.coverage" |
| 53 | + run: | |
| 54 | + cd lightning-block-sync |
| 55 | + cargo build --verbose --color always --features rest-client |
| 56 | + cargo build --verbose --color always --features rpc-client |
| 57 | + cargo build --verbose --color always --features rpc-client,rest-client |
| 58 | + cargo build --verbose --color always --features rpc-client,rest-client,tokio |
| 59 | + cd .. |
| 60 | + - name: Build Block Sync Clients on Rust ${{ matrix.toolchain }} with features and full code-linking for coverage generation |
| 61 | + if: matrix.coverage |
| 62 | + run: | |
| 63 | + cd lightning-block-sync |
| 64 | + RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rest-client |
| 65 | + RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client |
| 66 | + RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client |
| 67 | + RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client,tokio |
| 68 | + cd .. |
51 | 69 | - name: Test on Rust ${{ matrix.toolchain }} with net-tokio
|
52 | 70 | if: "matrix.build-net-tokio && !matrix.coverage"
|
53 | 71 | run: cargo test --verbose --color always
|
|
57 | 75 | - name: Test on Rust ${{ matrix.toolchain }}
|
58 | 76 | if: "! matrix.build-net-tokio"
|
59 | 77 | run: cargo test --verbose --color always -p lightning
|
| 78 | + - name: Test Block Sync Clients on Rust ${{ matrix.toolchain }} with features |
| 79 | + if: "matrix.build-net-tokio && !matrix.coverage" |
| 80 | + run: | |
| 81 | + cd lightning-block-sync |
| 82 | + cargo test --verbose --color always --features rest-client |
| 83 | + cargo test --verbose --color always --features rpc-client |
| 84 | + cargo test --verbose --color always --features rpc-client,rest-client |
| 85 | + cargo test --verbose --color always --features rpc-client,rest-client,tokio |
| 86 | + cd .. |
| 87 | + - name: Test Block Sync Clients on Rust ${{ matrix.toolchain }} with features and full code-linking for coverage generation |
| 88 | + if: matrix.coverage |
| 89 | + run: | |
| 90 | + cd lightning-block-sync |
| 91 | + RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features rest-client |
| 92 | + RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features rpc-client |
| 93 | + RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features rpc-client,rest-client |
| 94 | + RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features rpc-client,rest-client,tokio |
| 95 | + cd .. |
60 | 96 | - name: Install deps for kcov
|
61 | 97 | if: matrix.coverage
|
62 | 98 | run: |
|
|
0 commit comments