-
Notifications
You must be signed in to change notification settings - Fork 46
49 lines (42 loc) · 1.27 KB
/
Copy pathdesktop.yml
File metadata and controls
49 lines (42 loc) · 1.27 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
name: Desktop
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: desktop on ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
include:
- platform: macos-latest
args: "--target universal-apple-darwin"
- platform: ubuntu-22.04
args: ""
- platform: windows-latest
args: ""
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Add macOS universal targets
if: matrix.platform == 'macos-latest'
working-directory: desktop/src-tauri
run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
- name: Linux system dependencies
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Build and upload the desktop app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: desktop
args: ${{ matrix.args }}
releaseId: ${{ github.event.release.id }}