Skip to content

Commit 686ddc0

Browse files
authored
Add CI step to test minimum versions (#31)
* Add CI step to test minimum versions * Add `rust-version` to `Cargo.toml` * Revert "Add `rust-version` to `Cargo.toml`" This reverts commit 4aa92fe. * Only cargo check
1 parent 7a87023 commit 686ddc0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/rust.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ jobs:
3737
- uses: actions/checkout@v3
3838
- name: doc
3939
run: cargo doc --all-features
40+
minimal:
41+
runs-on: ubuntu-latest
42+
name: ubuntu / stable / minimal-versions
43+
steps:
44+
- uses: actions/checkout@v3
45+
- name: Install stable
46+
uses: dtolnay/rust-toolchain@stable
47+
- name: Install nightly for -Zminimal-versions
48+
uses: dtolnay/rust-toolchain@nightly
49+
- name: rustup default stable
50+
run: rustup default stable
51+
- name: cargo update -Zminimal-versions
52+
run: cargo +nightly update -Zminimal-versions
53+
- name: cargo check
54+
run: cargo check --locked --all-features
4055
msrv:
4156
runs-on: ubuntu-latest
4257
# we use a matrix here just because env can't be used in job names

0 commit comments

Comments
 (0)