Skip to content

review: anrokx open PR review (796, 791, 790, 788) #417

review: anrokx open PR review (796, 791, 790, 788)

review: anrokx open PR review (796, 791, 790, 788) #417

Workflow file for this run

name: windows
on:
workflow_dispatch:
push:
branches:
- main
tags:
- "v*"
pull_request:
permissions:
contents: write
jobs:
unit_windows:
name: unit (windows)
runs-on: windows-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install
run: npm ci
- name: Unit tests
run: npm run test:unit
- name: Command surface drift check
run: npm run check:command-surface
tauri_windows:
name: tauri build (windows)
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
runs-on: windows-latest
timeout-minutes: 60
needs: [unit_windows]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: "src-tauri -> target"
- name: Install
run: npm ci
- name: Build Windows installer (Tauri)
run: npm run tauri:build
- name: Upload installer artifacts
uses: actions/upload-artifact@v4
with:
name: tauri-windows-bundle
if-no-files-found: error
path: |
src-tauri/target/release/bundle/msi/*.msi
src-tauri/target/release/bundle/nsis/*.exe
- name: Create GitHub Release (tags only)
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
src-tauri/target/release/bundle/msi/*.msi
src-tauri/target/release/bundle/nsis/*.exe