* fix(windows): 收敛启动和开发产物路径 * ci(windows): 校验运行时 smoke 脚本 --------- Co-authored-by: Cooper-X-Oak <Cooper-X-Oak@users.noreply.github.com>
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, dev]
|
|
pull_request:
|
|
branches: [main, dev]
|
|
|
|
jobs:
|
|
windows-tauri:
|
|
name: Windows Tauri checks
|
|
runs-on: windows-latest
|
|
defaults:
|
|
run:
|
|
working-directory: openless-all/app
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: npm
|
|
cache-dependency-path: openless-all/app/package-lock.json
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Install frontend dependencies
|
|
run: npm ci
|
|
|
|
- name: Check Windows prerequisites
|
|
shell: pwsh
|
|
run: ./scripts/windows-preflight.ps1 -Toolchain msvc
|
|
|
|
- name: Check PowerShell scripts
|
|
shell: pwsh
|
|
run: |
|
|
foreach ($script in @("./scripts/windows-preflight.ps1", "./scripts/windows-build-gnu.ps1", "./scripts/windows-runtime-smoke.ps1")) {
|
|
$errors = $null
|
|
[System.Management.Automation.PSParser]::Tokenize((Get-Content -Raw $script), [ref]$errors) | Out-Null
|
|
if ($errors) {
|
|
$errors | Format-List
|
|
exit 1
|
|
}
|
|
}
|
|
|
|
- name: Build frontend
|
|
run: npm run build
|
|
|
|
- name: Check Tauri backend
|
|
run: cargo check --manifest-path src-tauri/Cargo.toml
|