-
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 branch information
Showing
2 changed files
with
32 additions
and
9 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 |
---|---|---|
|
@@ -9,11 +9,12 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
env: | ||
RUST_BACKTRACE: "1" | ||
RUSTFLAGS: "-Dwarnings" | ||
RUSTDOCFLAGS: "-Dwarnings" | ||
RUSTC_WRAPPER: "sccache" | ||
SCCACHE_GHA_ENABLED: "true" | ||
MSRV: "1.76" | ||
RUST_BACKTRACE: "1" | ||
RUSTFLAGS: "-Dwarnings" | ||
RUSTDOCFLAGS: "-Dwarnings" | ||
RUSTC_WRAPPER: "sccache" | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
jobs: | ||
lints: | ||
|
@@ -23,7 +24,7 @@ jobs: | |
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt, clippy | ||
- uses: mozilla-actions/[email protected].3 | ||
- uses: mozilla-actions/[email protected].6 | ||
- run: cargo fmt --check | ||
- run: cargo clippy --no-deps | ||
- run: cargo doc --no-deps --document-private-items | ||
|
@@ -37,9 +38,28 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: mozilla-actions/[email protected].3 | ||
- uses: mozilla-actions/[email protected].6 | ||
- uses: taiki-e/install-action@nextest | ||
- run: cargo test | ||
- run: cargo nextest run | ||
|
||
|
||
minimal-crates: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
- uses: mozilla-actions/[email protected] | ||
- name: cargo check | ||
run: | | ||
rm -f Cargo.lock | ||
cargo +nightly check -Z minimal-versions | ||
msrv: | ||
runs-on: ubuntu-lates | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.MSRV }} | ||
- uses: mozilla-actions/[email protected] | ||
- name: Check MSRV | ||
run: | | ||
cargo +$MSRV check |
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