Skip to content

build(release): 同步 0.1.6 发版版本入口 #40

build(release): 同步 0.1.6 发版版本入口

build(release): 同步 0.1.6 发版版本入口 #40

name: windows-packaging-smoke
on:
pull_request:
push:
branches:
- "**"
workflow_dispatch:
permissions:
contents: read
jobs:
packaging-smoke:
runs-on: windows-latest
env:
DEEPLX_URL: http://127.0.0.1:1188/translate
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: desktop-shell/package-lock.json
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pyinstaller
python -m pip install -r requirements.txt
- name: Install desktop-shell dependencies
working-directory: desktop-shell
run: npm ci
- name: Build desktop-shell sidecars
run: python scripts/build_desktop_shell_sidecars.py --python python
- name: Run desktop-shell frontend tests
working-directory: desktop-shell
run: npm test
- name: Build desktop-shell frontend dist
working-directory: desktop-shell
run: npm run build
- name: Run desktop-shell Rust tests
working-directory: desktop-shell
run: npm run test:rust
- name: Run desktop-shell release smoke
run: python scripts/smoke_desktop_shell_release.py