diff options
| author | HarmoGlace <23212967+HarmoGlace@users.noreply.github.com> | 2023-05-03 10:37:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-03 10:37:44 +0200 |
| commit | 856557353b8d80322382a1b58ce8ccf309b0e94d (patch) | |
| tree | 1bd9f4531116905ab57fbfd90e58bc4d064921a2 /.github/workflows | |
| parent | ad347632ab95e29eb5180b27142f5c264dfc611a (diff) | |
Add rust minimum version in `Cargo.toml` (#902)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0158ad8..55995ef1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,9 +3,11 @@ on: [push, pull_request] env: RUSTFLAGS: "-Dwarnings" + rust_min: 1.65.0 jobs: ci: + name: Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -15,3 +17,20 @@ jobs: - run: cargo clippy --workspace --all-targets - run: cargo build --workspace - run: cargo test --workspace --no-fail-fast + msrv: + name: MSRV + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v3 + + - name: Install toolchain (${{ env.rust_min }}) + run: | + rustup install --profile minimal ${{ env.rust_min }} + rustup override set ${{ env.rust_min }} + + - name: Cache + uses: Swatinem/rust-cache@v2 + + - name: Build + run: cargo build --workspace |
