-
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added MSRV check * Added Rust version check from Cargo.toml * Update rust.yml Co-authored-by: Kevin <[email protected]> --------- Co-authored-by: Kevin <[email protected]>
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -66,6 +66,24 @@ jobs: | |
- name: Test docs | ||
run: cargo test --doc --profile ci --features intl | ||
|
||
msrv: | ||
name: Minimum supported Rust version | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Get the rust_version from the Cargo.toml | ||
- name: Get rust_version | ||
id: rust_version | ||
run: echo "rust_version=$(grep '^rust-version' Cargo.toml | cut -d' ' -f3 | tr -d '"')" >> $GITHUB_OUTPUT | ||
- uses: actions-rs/[email protected] | ||
with: | ||
toolchain: ${{ steps.rust_version.outputs.rust_version }} | ||
override: true | ||
profile: minimal | ||
- name: Check compilation | ||
run: cargo check --all-features --all-targets | ||
|
||
misc: | ||
name: Misc | ||
runs-on: ubuntu-latest | ||
|
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