-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add MSRV job to CI * Update CI * Add MSRV note to README
- Loading branch information
1 parent
88a5703
commit a27b39f
Showing
4 changed files
with
1,134 additions
and
8 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,16 +7,29 @@ on: | |
branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-Dwarnings" | ||
|
||
jobs: | ||
build: | ||
msrv: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
# rust-version from Cargo.toml | ||
- name: Install Rust 1.65.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 | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: cargo build | ||
- name: Run tests | ||
run: cargo test |
Oops, something went wrong.