Skip pinning cpufeatures, which has fixed its MSRV
[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.48.0
18           - beta
19         pinning: [true, false]
20         exclude:
21           - toolchain: 1.48.0
22             pinning: false
23     runs-on: ubuntu-latest
24     steps:
25       - name: Checkout source code
26         uses: actions/checkout@v3
27       - name: Install Rust ${{ matrix.toolchain }} toolchain
28         uses: actions-rs/toolchain@v1
29         with:
30           toolchain: ${{ matrix.toolchain }}
31           override: true
32           profile: minimal
33       - name: Pin dependencies
34         if: ${{ matrix.pinning }}
35         run: |
36           cargo update -p tokio-postgres --precise "0.7.5" --verbose
37           cargo update -p postgres-types --precise "0.2.3" --verbose
38           cargo update -p tokio --precise "1.14.1" --verbose
39       - name: Build on Rust ${{ matrix.toolchain }}
40         run: |
41           cargo build --verbose --color always