Skip to content

Commit 273a9cf

Browse files
ShaeOJclaude
andcommitted
Add GitHub Actions workflow for cross-platform builds
- Builds for macOS (Apple Silicon + Intel), Windows, and Linux - Automatically creates draft releases with all installers - Triggered by version tags (e.g., v1.0.0) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4b32298 commit 273a9cf

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Release Build
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
release:
11+
permissions:
12+
contents: write
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- platform: 'macos-latest'
18+
args: '--target aarch64-apple-darwin'
19+
- platform: 'macos-latest'
20+
args: '--target x86_64-apple-darwin'
21+
- platform: 'ubuntu-22.04'
22+
args: ''
23+
- platform: 'windows-latest'
24+
args: ''
25+
26+
runs-on: ${{ matrix.platform }}
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
31+
- name: Setup Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: lts/*
35+
cache: 'npm'
36+
37+
- name: Install Rust stable
38+
uses: dtolnay/rust-toolchain@stable
39+
with:
40+
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
41+
42+
- name: Install dependencies (Ubuntu only)
43+
if: matrix.platform == 'ubuntu-22.04'
44+
run: |
45+
sudo apt-get update
46+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
47+
48+
- name: Install frontend dependencies
49+
run: npm install
50+
51+
- name: Build the app
52+
uses: tauri-apps/tauri-action@v0
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
with:
56+
tagName: ${{ github.ref_name }}
57+
releaseName: 'AxeOS Live! ${{ github.ref_name }}'
58+
releaseBody: 'See the assets to download this version and install.'
59+
releaseDraft: true
60+
prerelease: false
61+
args: ${{ matrix.args }}

0 commit comments

Comments
 (0)