matrix:
toolchain:
- stable
- - 1.48.0
+ - 1.56.0
- beta
- pinning: [true, false]
- exclude:
- - toolchain: 1.48.0
- pinning: false
runs-on: ubuntu-latest
steps:
- name: Checkout source code
toolchain: ${{ matrix.toolchain }}
override: true
profile: minimal
- - name: Pin dependencies
- if: ${{ matrix.pinning }}
- run: |
- cargo update -p tokio-postgres --precise "0.7.5" --verbose
- cargo update -p postgres-types --precise "0.2.3" --verbose
- cargo update -p tokio --precise "1.14.1" --verbose
- cargo update -p cpufeatures --precise "0.2.2" --verbose # https://github.com/RustCrypto/utils/issues/795
- name: Build on Rust ${{ matrix.toolchain }}
run: |
cargo build --verbose --color always