Skip to content

Commit 7a87023

Browse files
authored
Add CI check for msrv (#30)
* Add CI check for msrv * Upgrade rust * Add `rust-version` to `Cargo.toml`
1 parent 64d82bf commit 7a87023

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/rust.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,19 @@ jobs:
3737
- uses: actions/checkout@v3
3838
- name: doc
3939
run: cargo doc --all-features
40+
msrv:
41+
runs-on: ubuntu-latest
42+
# we use a matrix here just because env can't be used in job names
43+
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
44+
strategy:
45+
matrix:
46+
msrv: [1.65.0]
47+
name: ubuntu / ${{ matrix.msrv }}
48+
steps:
49+
- uses: actions/checkout@v3
50+
- name: Install ${{ matrix.msrv }}
51+
uses: dtolnay/rust-toolchain@master
52+
with:
53+
toolchain: ${{ matrix.msrv }}
54+
- name: cargo +${{ matrix.msrv }} check
55+
run: cargo check --all-features

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ keywords = ["secret", "logging", "pii", "password", "no_std"]
1111
documentation = "https://docs.rs/redact/"
1212
repository = "https://github.com/eopb/redact"
1313
edition = "2021"
14+
rust-version = "1.65"
1415
exclude = [".github"]
1516

1617
[features]

0 commit comments

Comments
 (0)