-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (88 loc) · 3.59 KB
/
release.yml
File metadata and controls
100 lines (88 loc) · 3.59 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
env:
# Opt into Node.js 24 for GitHub Actions (actions/checkout@v4 and others
# still run on Node.js 20 by default, which is deprecated as of 2026-05-26).
# Node.js 24 will become the default on 2026-06-02.
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
release:
strategy:
fail-fast: false
matrix:
include:
- platform: ubuntu-24.04
target: x86_64-unknown-linux-gnu
- platform: windows-latest
target: x86_64-pc-windows-msvc
- platform: macos-latest
target: aarch64-apple-darwin
# Intel macOS dropped: GitHub-hosted macos-13 Intel runners are
# effectively unavailable (jobs queue indefinitely, get cancelled
# at 24h). Apple Silicon DMG only. Re-add a universal-apple-darwin
# target on macos-latest if Intel support becomes necessary again.
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install frontend dependencies
run: npm ci
# Linux: install system deps required by Tauri and cpal (ALSA)
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf \
libasound2-dev \
libgtk-3-dev \
libsoup-3.0-dev \
libjavascriptcoregtk-4.1-dev \
clang \
cmake
- name: Build Tauri app
uses: tauri-apps/tauri-action@84b9d35b5fc46c1e45415bdb6144030364f7ebc5 # v0.6.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# macOS: whisper.cpp requires std::filesystem (macOS 11.0+)
MACOSX_DEPLOYMENT_TARGET: ${{ runner.os == 'macOS' && '11.0' || '' }}
# whisper-rs-sys forwards CMAKE_* env vars as cmake defines
CMAKE_OSX_DEPLOYMENT_TARGET: ${{ runner.os == 'macOS' && '11.0' || '' }}
# macOS code signing — only meaningful on macOS runners
APPLE_CERTIFICATE: ${{ runner.os == 'macOS' && secrets.APPLE_CERTIFICATE || '' }}
APPLE_CERTIFICATE_PASSWORD: ${{ runner.os == 'macOS' && secrets.APPLE_CERTIFICATE_PASSWORD || '' }}
APPLE_SIGNING_IDENTITY: ${{ runner.os == 'macOS' && secrets.APPLE_SIGNING_IDENTITY || '' }}
APPLE_ID: ${{ runner.os == 'macOS' && secrets.APPLE_ID || '' }}
APPLE_PASSWORD: ${{ runner.os == 'macOS' && secrets.APPLE_PASSWORD || '' }}
APPLE_TEAM_ID: ${{ runner.os == 'macOS' && secrets.APPLE_TEAM_ID || '' }}
with:
tagName: ${{ github.ref_name }}
releaseName: 'FerriScribe ${{ github.ref_name }}'
releaseBody: 'See the assets below to download and install this version.'
releaseDraft: false
# Tags with a semver pre-release suffix (e.g. v0.10.85-beta.1) ship
# as GitHub prereleases; plain vX.Y.Z tags ship as stable. Promote
# a beta to stable by tagging the same commit vX.Y.Z.
prerelease: ${{ contains(github.ref_name, '-') }}
args: --target ${{ matrix.target }}