This commit is contained in:
Maybe Waffle 2022-09-15 22:13:58 +04:00
parent c854081dce
commit d4ababf99f

View file

@ -21,8 +21,13 @@ env:
# When updating this, also update:
# - README.md
# - src/lib.rs
# - down below in a matrix
# - down below in a matrix
rust_msrv: 1.58.0
# When updating this, also update:
# - down below in a matrix
#
# This is needed because some of our tests can't run on MSRV.
rust_msrv_dev: 1.59.0
CI: 1
@ -38,6 +43,7 @@ jobs:
- check-examples
- clippy
- doc
- msrv
steps:
- run: exit 0
@ -76,7 +82,7 @@ jobs:
- stable
- beta
- nightly
- msrv
- msrv_dev
include:
- rust: stable
@ -88,8 +94,8 @@ jobs:
- rust: nightly
toolchain: nightly-2022-01-17
features: "--all-features"
- rust: msrv
toolchain: 1.58.0
- rust: msrv_dev
toolchain: 1.59.0
features: "--features full"
steps:
@ -188,3 +194,27 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: docs # from .cargo/config.toml
msrv:
name: minimal supported rust version
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust ${{ env.rust_msrv }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.rust_msrv }}
override: true
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
- name: Check
uses: actions-rs/cargo@v1
with:
command: check
args: --verbose --features full