-
Notifications
You must be signed in to change notification settings - Fork 47
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
1 changed file
with
21 additions
and
20 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 |
---|---|---|
|
@@ -11,26 +11,6 @@ env: | |
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
rustfmt_and_clippy: | ||
name: Rustfmt and Clippy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust Nightly with rustfmt and clippy | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: nightly | ||
components: rustfmt, clippy | ||
|
||
- uses: Swatinem/[email protected] | ||
|
||
- name: "Check formatting" | ||
run: cargo +nightly fmt --check --all | ||
|
||
- name: Run Clippy | ||
run: cargo clippy --all-targets --all-features | ||
|
||
build_and_test: | ||
name: "Build and Test" | ||
|
@@ -62,6 +42,27 @@ jobs: | |
# RUSTDOCFLAGS: -D warnings | ||
run: cargo doc --no-deps --workspace --lib --document-private-items --examples | ||
|
||
rustfmt_and_clippy: | ||
name: Rustfmt and Clippy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust Nightly with rustfmt and clippy | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: nightly | ||
components: rustfmt, clippy | ||
|
||
- uses: Swatinem/[email protected] | ||
|
||
- name: "Check formatting" | ||
run: cargo +nightly fmt --check --all | ||
|
||
- name: Run Clippy | ||
run: cargo clippy --all-targets --all-features | ||
|
||
miri: | ||
if: ( ! github.event.pull_request.draft ) | ||
name: "Test with Miri" | ||
|