From aa204649fa4f48929bb153619edca3de72c584da Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Sun, 24 Aug 2025 16:38:17 +0800 Subject: [PATCH] fix: add web asset build step before running Clippy --- .github/workflows/lint-clippy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/lint-clippy.yml b/.github/workflows/lint-clippy.yml index b06151b1..cd116cd9 100644 --- a/.github/workflows/lint-clippy.yml +++ b/.github/workflows/lint-clippy.yml @@ -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