-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (70 loc) · 2.42 KB
/
release.yml
File metadata and controls
80 lines (70 loc) · 2.42 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
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
- os: windows-2022
target: x86_64-pc-windows-msvc
- os: macos-14
target: aarch64-apple-darwin
# macos-13 (Intel) was dropped — those runners are scarce on
# GitHub-hosted and frequently queue for hours. Intel Mac users
# can run the Apple Silicon build via Rosetta 2.
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Linux build deps
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev pkg-config \
libwebkit2gtk-4.1-dev libgtk-3-dev libsoup-3.0-dev \
libayatana-appindicator3-dev librsvg2-dev libi2c-dev
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: app/package-lock.json
- name: Tauri CLI
run: cargo install tauri-cli --version "^2.0" --locked
- name: Frontend install
working-directory: app
run: npm ci
# Build unsigned. We don't currently maintain Apple Developer or
# Authenticode certificates — installers carry SmartScreen / Gatekeeper
# warnings on first run. Once certificates are added as repository
# secrets, re-introduce a signed-build step gated on their presence.
- name: Tauri build
working-directory: app/src-tauri
run: cargo tauri build --target ${{ matrix.target }}
- name: Collect release artifacts
shell: bash
run: |
mkdir -p release-artifacts
cp -R target/${{ matrix.target }}/release/bundle/*/. release-artifacts/ || true
ls -la release-artifacts
- uses: softprops/action-gh-release@v2
with:
files: |
release-artifacts/*.dmg
release-artifacts/*.app.tar.gz
release-artifacts/*.deb
release-artifacts/*.rpm
release-artifacts/*.AppImage
release-artifacts/*.msi
release-artifacts/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}