Skip to content

Add Windows build workflow and release automation #1

Add Windows build workflow and release automation

Add Windows build workflow and release automation #1

Workflow file for this run

name: Build Windows
on:
workflow_dispatch:
push:
branches: [main, test-linux-workflow]
jobs:
build:
name: Build Windows x86_64
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-msvc
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Build Tauri app
run: bun run tauri build --target x86_64-pc-windows-msvc
- name: Create artifacts directory
shell: bash
run: |
mkdir -p dist/windows-x86_64
cp src-tauri/target/x86_64-pc-windows-msvc/release/bundle/msi/*.msi dist/windows-x86_64/ || true
cp src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis/*.exe dist/windows-x86_64/ || true
# Create a zip of the executable
cd src-tauri/target/x86_64-pc-windows-msvc/release/
7z a -tzip ../../../../dist/windows-x86_64/Claudia-windows-x86_64.zip claudia.exe
cd ../../../../
- name: Generate checksums
shell: bash
run: |
cd dist/windows-x86_64
sha256sum * > checksums.txt
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: windows-x86_64
path: dist/windows-x86_64/*