-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run `rustup show` to install from rust-toolchain.toml.
- Loading branch information
Showing
3 changed files
with
7 additions
and
34 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 |
---|---|---|
|
@@ -31,36 +31,16 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
# TODO: Remove duplicate configuration when https://github.com/actions-rs/toolchain/issues/126 is resolved. | ||
components: cargo, clippy, rustfmt | ||
override: true | ||
toolchain: nightly | ||
target: x86_64-pc-windows-msvc | ||
run: rustup show | ||
- name: Check formatting | ||
if: ${{ success() && (inputs.full || github.event_name != 'workflow_call') }} | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
run: cargo fmt --all -- --check | ||
- name: Test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
# Need to pass `--all-features` because of https://github.com/rust-lang/cargo/issues/2911. | ||
args: --all-features --workspace | ||
run: cargo test --all-features --workspace | ||
- name: Lint | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-features --all-targets --no-deps --workspace | ||
run: cargo clippy --all-features --all-targets --no-deps --workspace | ||
- name: Build documentation | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
args: --all-features --no-deps --workspace | ||
run: cargo doc --all-features --no-deps --workspace | ||
- name: Set up MSBuild | ||
if: ${{ success() && (inputs.full || github.event_name != 'workflow_call') }} | ||
uses: microsoft/[email protected] | ||
|
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