aca2d244fcde56b7ea9bb0392619c90a1e5929d8
[rapid-gossip-sync-server] / .github / workflows / build.yml
1 name: Cross-platform build verification
2 on:
3   push:
4     branches:
5       - main
6   pull_request:
7     branches:
8       - "*"
9
10 jobs:
11   build:
12     strategy:
13       fail-fast: false
14       matrix:
15         toolchain:
16           - stable
17           - 1.56.0
18           - beta
19     runs-on: ubuntu-latest
20     steps:
21       - name: Checkout source code
22         uses: actions/checkout@v3
23       - name: Install Rust ${{ matrix.toolchain }} toolchain
24         uses: actions-rs/toolchain@v1
25         with:
26           toolchain: ${{ matrix.toolchain }}
27           override: true
28           profile: minimal
29       - name: Build on Rust ${{ matrix.toolchain }}
30         run: |
31           cargo build --verbose --color always