From 4c9ef3e32a6d05a622b67591621f8c052cb66ba5 Mon Sep 17 00:00:00 2001 From: oligami-0424 Date: Fri, 15 Dec 2023 13:50:55 +0900 Subject: [PATCH] add clippy tier2 ci --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ace180..65c3dc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -192,7 +192,7 @@ jobs: cargo test --all --release --target $v -- --nocapture } - build_target_tier2: + build_and_clippy_target_tier2: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] @@ -217,6 +217,8 @@ jobs: rustup target add ${v} cargo build --target ${v} cargo build --target ${v} --release + cargo clippy --target ${v} --all-targets --all-features -- -D warnings + cargo clippy --target ${v} --all-targets --all-features --release -- -D warnings done - name: build linux loongarch64 if: matrix.os == 'ubuntu-latest' && matrix.version != '1.68.0' @@ -224,6 +226,8 @@ jobs: rustup target add loongarch64-unknown-linux-gnu cargo build --target loongarch64-unknown-linux-gnu cargo build --target loongarch64-unknown-linux-gnu --release + cargo clippy --target loongarch64-unknown-linux-gnu --all-targets --all-features -- -D warnings + cargo clippy --target loongarch64-unknown-linux-gnu --all-targets --all-features --release -- -D warnings - name: build macos if: matrix.os == 'macos-latest' run: | @@ -232,6 +236,8 @@ jobs: rustup target add ${v} cargo build --target ${v} cargo build --target ${v} --release + cargo clippy --target ${v} --all-targets --all-features -- -D warnings + cargo clippy --target ${v} --all-targets --all-features --release -- -D warnings done - name: build windows if: matrix.os == 'windows-latest' @@ -241,6 +247,8 @@ jobs: rustup target add $v cargo build --target ${v} cargo build --target ${v} --release + cargo clippy --target ${v} --all-targets --all-features -- -D warnings + cargo clippy --target ${v} --all-targets --all-features --release -- -D warnings } build_cache_android: