From 4ae7100e4ab8f3dc3a4cb159653806520c9c998e Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 27 Sep 2025 18:50:12 +0300 Subject: [PATCH] install rustfmt + clippy on a CI machine before running the tests --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d83c23096..c721c507d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,6 +80,7 @@ jobs: # Use rust-toolchain because GHA tends to still have an old version for a few days after a new Rust release. - uses: dtolnay/rust-toolchain@stable + - run: rustup component add rustfmt - run: cargo fmt --version - run: cargo fmt -- --check @@ -98,6 +99,7 @@ jobs: sudo apt-get update # Run update first or install might start failing eventually. sudo apt-get install --no-install-recommends -y libasound2-dev libudev-dev pkg-config xorg-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libdbus-1-dev + - run: rustup component add clippy - run: cargo clippy --version # Using --all-targets to also check tests and examples. # Note that technically --all-features doesn't check all code when something is *disabled* by a feature.