about summary refs log tree commit diff
diff options
context:
space:
mode:
authortempdragon <645703113@qq.com>2024-03-16 12:05:56 +0800
committertempdragon <645703113@qq.com>2024-03-16 12:05:56 +0800
commitf6cab2cd1eb985737db2d0059c4655588c9ed4e1 (patch)
treec217dcdd82029e4b2d642cde581cdb56b146e3a5
parent390f9064e18701f9b863f1790a4bc22bc8e51d0d (diff)
feat(CI): Add clippy check to workflow.
-rw-r--r--.github/workflows/ci.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 839f3ba4de3..6079725b3e6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -52,6 +52,9 @@ jobs:
     - name: Install rustfmt
       run: rustup component add rustfmt
 
+    - name: Install clippy
+      run: rustup component add clippy
+
     - name: Download artifact
       run: curl -LO https://github.com/antoyo/gcc/releases/latest/download/${{ matrix.libgccjit_version.gcc }}
 
@@ -98,6 +101,11 @@ jobs:
     - name: Check formatting
       run: cargo fmt -- --check
 
+     - name: clippy
+      run: |
+        cargo clippy --all-targets -- -D warnings
+        cargo clippy --all-targets --features master -- -D warnings
+
   duplicates:
     runs-on: ubuntu-latest
     steps: