blob: 07aeec79984e751f11dd75529b7a25a43fd81e18 (
plain) (
blame)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag_name:
description: "Tag name to release (e.g., v1.0.0)"
required: true
default: "v1.0.0"
env:
CARGO_TERM_COLOR: always
permissions:
contents: write
jobs:
promote-release:
name: Create Release & Changelog
permissions:
contents: write
runs-on: ubuntu-latest
outputs:
release_id: ${{ steps.create_release.outputs.id }}
release_body: ${{ steps.changelog.outputs.changes }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.event_name == 'workflow_dispatch' && inputs.tag_name || github.ref_name }}
changelogFilePath: CHANGELOG.md
includeInvalidCommits: true
useGitmojis: false
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event_name == 'workflow_dispatch' && inputs.tag_name || github.ref_name }}
name: "DropOut ${{ github.event_name == 'workflow_dispatch' && inputs.tag_name || github.ref_name }}"
body: ${{ steps.changelog.outputs.changes }}
draft: true
prerelease: false
build-tauri:
name: Build & Upload (${{ matrix.name }})
needs: promote-release
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: "ubuntu-22.04"
name: "Linux x86_64"
target: "x86_64-unknown-linux-gnu"
args: "--target x86_64-unknown-linux-gnu"
- platform: "ubuntu-24.04-arm"
name: "Linux ARM64"
target: "aarch64-unknown-linux-gnu"
args: "--target aarch64-unknown-linux-gnu"
- platform: "macos-latest"
name: "macOS ARM64"
target: "aarch64-apple-darwin"
args: "--target aarch64-apple-darwin"
- platform: "windows-latest"
name: "Windows x86_64"
target: "x86_64-pc-windows-msvc"
args: "--target x86_64-pc-windows-msvc"
- platform: "windows-11-arm"
name: "Windows ARM64"
target: "aarch64-pc-windows-msvc"
args: "--target aarch64-pc-windows-msvc"
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install Dependencies (Linux x86_64)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
- name: Install Dependencies (Linux ARM64)
if: matrix.platform == 'ubuntu-24.04-arm'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
cache-dependency-path: "ui/pnpm-lock.yaml"
- name: Install Frontend Dependencies
run: pnpm install
working-directory: ui
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Rust Cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
shared-key: ${{ matrix.target }}
- name: Build Tauri App
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ needs.promote-release.outputs.release_id }}
args: ${{ matrix.args }}
build-tauri-arch:
name: Build & Upload (Arch Linux)
needs: promote-release
permissions:
contents: write
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Install Dependencies
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm webkit2gtk-4.1 base-devel curl wget file openssl appmenu-gtk-module libappindicator-gtk3 librsvg git
# Fix makepkg running as root
sed -i 's/E_ROOT=1/E_ROOT=0/' /usr/bin/makepkg || true
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
cache-dependency-path: "ui/pnpm-lock.yaml"
- name: Install Frontend Dependencies
run: pnpm install
working-directory: ui
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "x86_64-unknown-linux-gnu"
- name: Rust Cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- name: Build Tauri App
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ needs.promote-release.outputs.release_id }}
args: "--target x86_64-unknown-linux-gnu"
|