From 2a6226376dbff09049d4b5d1fa81777f22e8a5cd Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Mon, 30 Jan 2023 10:35:21 +0100 Subject: [PATCH] feat(ci): Add MSRV check This adds a basic MSRV check. The chosen MSRV copies the one used by deltachat at the moment. --- .github/workflows/ci.yml | 16 ++++++++++++++++ Cargo.toml | 3 +++ 2 files changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2cb37fce08..b5932d9dcb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -157,3 +157,19 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} args: --all-features --all-targets + + msrv: + name: Minimal Supported Rust Version + runs-on: ubuntu-latest + env: + MSRV: "1.63" + steps: + - uses: actions/checkout@master + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: "${{ MSRV }}" + override: true + - name: Check MSRV all features + run: | + cargo +$MSRV check --workspace --all-targets --all-features diff --git a/Cargo.toml b/Cargo.toml index dd1528b963..794fee414b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,9 @@ license = "MIT/Apache-2.0" authors = ["dignifiedquire "] 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"