feat: enhance CI workflows with paths filtering for Rust and web changes

This commit is contained in:
Tunglies
2025-09-29 20:11:55 +08:00
parent d86bdea127
commit ecdeadfe1e
3 changed files with 76 additions and 19 deletions

View File

@@ -19,6 +19,22 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Check src-tauri changes
id: check_changes
uses: dorny/paths-filter@v3
with:
filters: |
rust:
- 'src-tauri/**'
- name: Skip if src-tauri not changed
if: steps.check_changes.outputs.rust != 'true'
run: echo "No src-tauri changes, skipping clippy lint."
- name: Continue if src-tauri changed
if: steps.check_changes.outputs.rust == 'true'
run: echo "src-tauri changed, running clippy lint."
- name: Checkout Repository
uses: actions/checkout@v4