name: "ci-msrv"
on:
pull_request:
push:
branches:
- master
- main
- staging - trying schedule:
- cron: '00 06 * * *'
jobs:
msrv:
name: msrv
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: checkout_repo
uses: actions/checkout@v2
- name: install_rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- name: install_cargo_msrv
run: cargo install cargo-msrv --no-default-features
- name: version_of_cargo_msrv
run: cargo msrv --version
- name: run_cargo_msrv_verify
run: cargo msrv --ignore-lockfile --output-format json verify -- cargo check --all-features
- name: run_cargo_msrv_on_verify_failure
if: ${{ failure() }}
run: cargo msrv --ignore-lockfile --output-format json -- cargo check --all-features