From ced22ac583f666b25fa4b9935d9386a160d0e6ae Mon Sep 17 00:00:00 2001 From: Matej Hrica Date: Thu, 2 Nov 2023 11:21:08 +0100 Subject: [PATCH] Run cargo clippy more times with each supported platform separately This seems to catch more problems, such as the u8/i8 mismatch on aarch64 platforms. Signed-off-by: Matej Hrica --- .github/workflows/code_quality.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 89739b3..80f6ad1 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -26,8 +26,17 @@ jobs: - name: Install asciidoctor run: sudo apt-get install -y asciidoctor + - name: Install additional Rust rust targets + run: rustup target add aarch64-unknown-linux-gnu aarch64-apple-darwin + - name: Formatting (rustfmt) run: cargo fmt -- --check - - name: Clippy (all features) - run: cargo clippy --all-targets --all-features + - name: Clippy x86_64-unknown-linux-gnu (all features) + run: cargo clippy --all-features --target x86_64-unknown-linux-gnu + + - name: Clippy aarch64-unknown-linux-gnu (all features) + run: cargo clippy --all-features --target aarch64-unknown-linux-gnu + + - name: Clippy aarch64-apple-darwin (all features) + run: cargo clippy --all-features --target aarch64-apple-darwin