-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Add CI job to check MSRV (#23)
* Verify MSRV in CI * Update CI * Add MSRV note to README
1 parent
f51dd7f
commit be5c454
Showing
4 changed files
with
1,176 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,17 +7,31 @@ on: | |
branches: ["main"] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-Dwarnings" | ||
|
||
jobs: | ||
msrv: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
# rust-version from Cargo.toml | ||
- name: Install Rust 1.61.0 | ||
uses: dtolnay/[email protected] | ||
- name: Use predefined lockfile | ||
run: mv Cargo.lock.MSRV Cargo.lock | ||
- name: Build | ||
run: cargo check --locked | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Lint | ||
run: cargo clippy --verbose -- -D warnings | ||
run: cargo clippy | ||
- name: Build | ||
run: cargo build --verbose | ||
run: cargo build | ||
- name: Run tests | ||
run: cargo test --verbose | ||
run: cargo test |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters