mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-29 06:54:33 +01:00
GHA: Add cargo clippy
This commit is contained in:
parent
b42abe1b4f
commit
10ec36b443
1 changed files with 28 additions and 0 deletions
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
@ -72,6 +72,33 @@ jobs:
|
|||
command: check
|
||||
args: --target=${{ matrix.target }}
|
||||
|
||||
# Clippy
|
||||
clippy:
|
||||
name: Cargo clippy
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust stable
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
target: x86_64-unknown-linux-gnu
|
||||
override: true
|
||||
|
||||
- name: Fail on warnings
|
||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs macros/src/lib.rs
|
||||
|
||||
- name: Cache Dependencies
|
||||
uses: Swatinem/rust-cache@v1
|
||||
|
||||
- name: cargo clippy
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
use-cross: false
|
||||
command: clippy
|
||||
|
||||
# Verify all examples, checks
|
||||
checkexamples:
|
||||
name: checkexamples
|
||||
|
@ -467,6 +494,7 @@ jobs:
|
|||
needs:
|
||||
- style
|
||||
- check
|
||||
- clippy
|
||||
- checkexamples
|
||||
- testexamples
|
||||
- checkmacros
|
||||
|
|
Loading…
Reference in a new issue