Skip to content

Commit

Permalink
ci: tacd: use only cargo clippy and not cargo check as well
Browse files Browse the repository at this point in the history
The checks performed by running cargo check are a subset of what
cargo clippy checks for (as indicated by cargo clippy using cargo
check in the background [1]).

Running both is thus a waste of CPU cycles.

[1]: https://github.com/rust-lang/rust-clippy/blob/c154754b74577906c5d55d57f7daeff02d6a33e7/src/main.rs#L59

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
  • Loading branch information
hnez committed Oct 6, 2023
1 parent faeb54d commit 760aff9
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/tacd-daemon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,6 @@ env:
RUSTFLAGS: -D warnings

jobs:
check:
strategy:
matrix:
features:
- ""
- "--features=demo_mode --no-default-features"
- "--tests"
name: cargo check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt update
- run: sudo apt install libsystemd-dev libiio-dev
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: check
args: ${{ matrix.features }}

fmt:
name: cargo fmt
runs-on: ubuntu-latest
Expand Down

0 comments on commit 760aff9

Please sign in to comment.