fix: add web asset build step before running Clippy

This commit is contained in:
Tunglies
2025-08-24 16:38:17 +08:00
Unverified
parent fbaff3e90c
commit aa204649fa

View File

@@ -58,5 +58,13 @@ jobs:
pnpm i
pnpm run prebuild ${{ matrix.target }}
# This workflow runs linting using cargo clippy.
# Note: If the web build step is skipped,
# cargo clippy will fail to run due to missing web dist in the Tauri environment.
- name: Build Web Assets
run: pnpm run web:build
env:
NODE_OPTIONS: "--max_old_space_size=4096"
- name: Run Clippy
run: cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets --all-features -- -D warnings