Skip to content

Commit

Permalink
Add CI check for msrv (#30)
Browse files Browse the repository at this point in the history
* Add CI check for msrv

* Upgrade rust

* Add `rust-version` to `Cargo.toml`
  • Loading branch information
eopb authored Jul 26, 2023
1 parent 64d82bf commit 7a87023
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,19 @@ jobs:
- uses: actions/checkout@v3
- name: doc
run: cargo doc --all-features
msrv:
runs-on: ubuntu-latest
# we use a matrix here just because env can't be used in job names
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
strategy:
matrix:
msrv: [1.65.0]
name: ubuntu / ${{ matrix.msrv }}
steps:
- uses: actions/checkout@v3
- name: Install ${{ matrix.msrv }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.msrv }}
- name: cargo +${{ matrix.msrv }} check
run: cargo check --all-features
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ keywords = ["secret", "logging", "pii", "password", "no_std"]
documentation = "https://docs.rs/redact/"
repository = "https://github.com/eopb/redact"
edition = "2021"
rust-version = "1.65"
exclude = [".github"]

[features]
Expand Down

0 comments on commit 7a87023

Please sign in to comment.