From d8e9efef87f69ac5ea65d0911a018fc921b9934a Mon Sep 17 00:00:00 2001 From: lanyeeee Date: Mon, 16 Mar 2026 08:14:25 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=B0=86pr=E7=9A=84=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E4=B8=8E=E4=BB=A3=E7=A0=81=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E8=A6=86=E7=9B=96=E6=8F=92=E4=BB=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check-backend.yml | 16 +++++++++++++++- .github/workflows/check-format.yml | 15 +++++++++++---- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-backend.yml b/.github/workflows/check-backend.yml index 94eb6cc..43a4b76 100644 --- a/.github/workflows/check-backend.yml +++ b/.github/workflows/check-backend.yml @@ -19,6 +19,7 @@ jobs: filters: | backend: - 'src-tauri/**' + - 'src-plugin/**' - '.github/workflows/check-backend.yml' - name: Skip backend checks when unchanged @@ -39,7 +40,10 @@ jobs: if: steps.changes.outputs.backend == 'true' uses: Swatinem/rust-cache@v2 with: - workspaces: src-tauri -> target + workspaces: | + src-tauri -> target + src-plugin -> target + src-plugin/examples -> target - name: Install dependencies if: steps.changes.outputs.backend == 'true' @@ -51,3 +55,13 @@ jobs: if: steps.changes.outputs.backend == 'true' working-directory: src-tauri run: cargo clippy -- -D warnings + + - name: Run Plugin Clippy + if: steps.changes.outputs.backend == 'true' + working-directory: src-plugin + run: cargo clippy --workspace --all-targets -- -D warnings + + - name: Run Plugin Examples Clippy + if: steps.changes.outputs.backend == 'true' + working-directory: src-plugin/examples + run: cargo clippy --workspace --all-targets -- -D warnings diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index 90aa939..73809a7 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -33,7 +33,14 @@ jobs: with: components: rustfmt - - name: Check Rust formatting - run: | - cd src-tauri - cargo fmt --all -- --check + - name: Check Tauri Rust formatting + working-directory: src-tauri + run: cargo fmt --all -- --check + + - name: Check Plugin Rust formatting + working-directory: src-plugin + run: cargo fmt --all -- --check + + - name: Check Plugin Examples Rust formatting + working-directory: src-plugin/examples + run: cargo fmt --all -- --check