Skip to content

Commit

Permalink
feat(ci): Add MSRV check
Browse files Browse the repository at this point in the history
This adds a basic MSRV check. The chosen MSRV copies the one used by
deltachat at the moment.
  • Loading branch information
flub authored Jan 30, 2023
2 parents 53ab719 + f8547b7 commit 2894143
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
env:
RUST_BACKTRACE: 1
RUSTFLAGS: -Dwarnings
MSRV: "1.63"


jobs:
Expand Down Expand Up @@ -157,3 +158,17 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets

msrv:
name: Minimal Supported Rust Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: "${{ env.MSRV }}"
override: true
- name: Check MSRV all features
run: |
cargo +$MSRV check --workspace --all-targets --all-features
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ license = "MIT/Apache-2.0"
authors = ["dignifiedquire <me@dignifiedquire.com>"]
repository = "/~https://github.com/n0-computer/sendme"

# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.63"

[dependencies]
anyhow = { version = "1.0.68", features = ["backtrace"] }
bao = "0.12.1"
Expand Down

0 comments on commit 2894143

Please sign in to comment.