Skip to content

fix(ci): 修复桌面 CI 构建 - 纳入 lib 模块并移除无效 action 参数 #5

fix(ci): 修复桌面 CI 构建 - 纳入 lib 模块并移除无效 action 参数

fix(ci): 修复桌面 CI 构建 - 纳入 lib 模块并移除无效 action 参数 #5

# Tauri 桌面端:仅构建(不发布),用于 PR 与 main 分支
# 触发:推送到 main、或向 main/release 提 PR
name: Build Desktop (CI)
on:
push:
branches:
- main
pull_request:
branches:
- main
- release
jobs:
build-tauri:
strategy:
fail-fast: false
matrix:
include:
- platform: windows-latest
args: ''
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
cache-dependency-path: desktop/package-lock.json
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: desktop/src-tauri
- name: Install frontend dependencies
run: npm ci
working-directory: desktop
- name: Build (no release)
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: desktop
args: ${{ matrix.args }}