From ca5de5fed41e8d0dd38e521f2e94f66d51f13aad Mon Sep 17 00:00:00 2001 From: coso Date: Sun, 14 Dec 2025 19:21:47 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E5=A4=8D=20Rust=20lint=20job=20?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 Rust lint job 中添加前端构建步骤,确保 dist 目录存在。 这样 Tauri 的 generate_context! 宏才能正常工作。 修复错误: - The `frontendDist` configuration is set to `"../dist"` but this path doesn't exist 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a54ec0c8..00d521481 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,11 +13,17 @@ jobs: lint: name: Lint & Format runs-on: ubuntu-latest - + steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + - name: Setup Rust uses: dtolnay/rust-toolchain@stable with: @@ -34,6 +40,12 @@ jobs: sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev + - name: Install frontend dependencies + run: npm ci + + - name: Build frontend + run: npm run build + - name: Check formatting working-directory: src-tauri run: cargo fmt --all -- --check