Skip to content

Commit

Permalink
Run cargo clippy more times with each supported platform separately
Browse files Browse the repository at this point in the history
This seems to catch more problems, such as the u8/i8 mismatch on
aarch64 platforms.

Signed-off-by: Matej Hrica <[email protected]>
  • Loading branch information
mtjhrc committed Nov 2, 2023
1 parent 6b6ea50 commit ced22ac
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ced22ac

Please sign in to comment.