Skip to content

Commit

Permalink
Check MSRV weekly and on PR/push
Browse files Browse the repository at this point in the history
  • Loading branch information
rcloran committed Sep 30, 2023
1 parent b5ea879 commit a68f978
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
@@ -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() }}

0 comments on commit a68f978

Please sign in to comment.