-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (54 loc) · 1.99 KB
/
Copy pathrelease.yml
File metadata and controls
62 lines (54 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
- name: Install Frontend Dependencies
run: npm ci
- name: Setup Rust
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
# Tauri auto-update publish step intentionally absent — re-add when real signing is configured (v3 scope)
- name: Build and Release Tauri App
id: tauri
uses: tauri-apps/tauri-action@84b9d35b5fc46c1e45415bdb6144030364f7ebc5 # v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }}
releaseName: "AutoMux ${{ github.ref_name }}"
releaseBody: "Automated Release from CI"
releaseDraft: true
prerelease: false
args: ${{ matrix.platform == 'macos-latest' && '--target universal-apple-darwin' || '' }}
- name: Verify universal binary
if: matrix.platform == 'macos-latest'
run: |
set -e
# tauri-action cleans the .app bundle after DMG packaging, so verify
# the raw universal binary produced by `cargo build --target universal-apple-darwin`
BINARY="src-tauri/target/universal-apple-darwin/release/automux"
if [ ! -f "$BINARY" ]; then
echo "Error: universal binary not found at $BINARY"
exit 1
fi
echo "Checking binary: $BINARY"
lipo -archs "$BINARY"
lipo -archs "$BINARY" | grep -q "x86_64" && lipo -archs "$BINARY" | grep -q "arm64"