]> git.bitcoin.ninja Git - ldk-sample/blob - .github/workflows/build.yml
Add lightning message-signing support
[ldk-sample] / .github / workflows / build.yml
1 name: Continuous Integration Checks
2
3 on: [push, pull_request]
4
5 jobs:
6   build:
7     strategy:
8       matrix:
9         toolchain: [ stable, beta ]
10         include:
11           - toolchain: stable
12             check-fmt: true
13     runs-on: ubuntu-latest
14     steps:
15       - name: Checkout source code
16         uses: actions/checkout@v2
17       - name: Install Rust ${{ matrix.toolchain }} toolchain
18         uses: actions-rs/toolchain@v1
19         with:
20           toolchain: ${{ matrix.toolchain }}
21           override: true
22           profile: minimal
23       - name: Build on Rust ${{ matrix.toolchain }}
24         run: cargo build --verbose --color always
25       - name: Check formatting
26         if: matrix.check-fmt
27         run: rustup component add rustfmt && cargo fmt --all -- --check