1 name: Cross-platform build verification
19 pinning: [true, false]
20 runs-on: ubuntu-latest
22 - name: Checkout source code
23 uses: actions/checkout@v3
24 - name: Install Rust ${{ matrix.toolchain }} toolchain
25 uses: actions-rs/toolchain@v1
27 toolchain: ${{ matrix.toolchain }}
30 - name: Pin dependencies
31 if: ${{ matrix.pinning }}
33 cargo update -p tokio-postgres --precise "0.7.5" --verbose
34 cargo update -p postgres-types --precise "0.2.3" --verbose
35 cargo update -p tokio --precise "1.14.1" --verbose
36 cargo update -p cpufeatures --precise "0.2.2" --verbose # https://github.com/RustCrypto/utils/issues/795
37 - name: Build on Rust ${{ matrix.toolchain }}
39 cargo build --verbose --color always