ci: add multi-OS release workflow with auto-updater

- GitHub Action builds for Linux, Windows, macOS on v* tag push
- macOS universal binary (Intel + Apple Silicon)
- Draft release with all installers + updater signatures
- tauri-plugin-updater for built-in auto-update support
This commit is contained in:
Matt
2026-08-25 18:25:05 +00:00
parent 717911b18b
commit 18783eaf28
23 changed files with 516 additions and 90 deletions
+65
View File
@@ -0,0 +1,65 @@
name: Build & Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
strategy:
fail-fast: false
matrix:
include:
- platform: ubuntu-22.04
args: ""
- platform: windows-latest
args: ""
- platform: macos-latest
args: "--target universal-apple-darwin"
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install frontend dependencies
run: npm ci
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Install Linux dependencies
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Build and release
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }}
releaseName: "Clustri ${{ github.ref_name }}"
releaseBody: "See the assets below to download and install."
releaseDraft: true
prerelease: false
updaterJsonPreferNsis: true
args: ${{ matrix.args }}