-
Notifications
You must be signed in to change notification settings - Fork 40
72 lines (59 loc) · 2.43 KB
/
build-tauri-app.yml
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
name: Build Tauri App
on:
release:
types: [published]
workflow_dispatch:
jobs:
release:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install Node 🧰
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'npm'
- name: Install Rust 🦀
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install dependencies (ubuntu only) 📦
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: Install npm packages 🔧
run: npm i
# - name: Add aarch64 target
# if: matrix.platform == 'macos-latest'
# run: rustup target add aarch64-apple-darwin
# - name: Build the app (Apple Silicon)
# uses: solvedDev/tauri-action@dev
# if: matrix.platform == 'macos-latest'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
# TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
# with:
# tagName: v__VERSION__ # tauri-action replaces \_\_VERSION\_\_ with the app version
# releaseName: 'v__VERSION__'
# releaseDraft: true
# prerelease: false
# args: --target aarch64-apple-darwin
- name: Build the app 💻
uses: bridge-core/tauri-action@dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
VITE_IS_TAURI_APP: true
with:
tagName: v__VERSION__ # tauri-action replaces \_\_VERSION\_\_ with the app version
releaseName: 'v__VERSION__'
releaseDraft: false
prerelease: false