diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f1222c..1f1a6a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: check: runs-on: ubuntu-latest diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml new file mode 100644 index 0000000..95ba793 --- /dev/null +++ b/.github/workflows/scheduled.yml @@ -0,0 +1,28 @@ +--- +name: Scheduled jobs + +on: + pull_request: + push: + branches: + - main + schedule: + # Every Monday at 14:45 UTC + - cron: '45 14 * * 1' + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + msrv: + name: msrv + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo install cargo-msrv + - run: cargo msrv --output-format json verify -- cargo check --all-targets + # If the verify fails, find the actual MSRV + - run: cargo msrv --output-format json -- cargo check --all-targets + if: ${{ failure() }}