-
-
Notifications
You must be signed in to change notification settings - Fork 17
72 lines (59 loc) · 2.59 KB
/
build-tauri.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'
# This workflow build a Tauri app for all platforms and upload the binaries as artifacts
on:
push:
branches:
- gh-pages
jobs:
publish-tauri:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install frontend dependencies
run: npm install
- uses: tauri-apps/tauri-action@v0
id: tauri
- name: Upload .dmg binary
if: matrix.platform == 'macos-latest'
uses: actions/upload-artifact@v2
with:
name: Jext Plugin Manager_${{ steps.tauri.outputs.appVersion }}_x64.dmg
path: src-tauri/target/release/bundle/dmg/Jext Plugin Manager_${{ steps.tauri.outputs.appVersion }}_x64.dmg
- name: Upload .deb binary
if: matrix.platform == 'ubuntu-20.04'
uses: actions/upload-artifact@v2
with:
name: jext-plugin-manager_${{ steps.tauri.outputs.appVersion }}_amd64.deb
path: src-tauri/target/release/bundle/deb/jext-plugin-manager_${{ steps.tauri.outputs.appVersion }}_amd64.deb
- name: Upload .appimage binary
if: matrix.platform == 'ubuntu-20.04'
uses: actions/upload-artifact@v2
with:
name: jext-plugin-manager_${{ steps.tauri.outputs.appVersion }}_amd64.AppImage
path: src-tauri/target/release/bundle/appimage/jext-plugin-manager_${{ steps.tauri.outputs.appVersion }}_amd64.AppImage
- name: Upload .msi installer
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: Jext Plugin Manager_${{ steps.tauri.outputs.appVersion }}_x64_en-US.msi
path: src-tauri/target/release/bundle/msi/Jext Plugin Manager_${{ steps.tauri.outputs.appVersion }}_x64_en-US.msi
- name: Upload .exe installer
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: Jext Plugin Manager_${{ steps.tauri.outputs.appVersion }}_x64-setup.exe
path: src-tauri/target/release/bundle/nsis/Jext Plugin Manager_${{ steps.tauri.outputs.appVersion }}_x64-setup.exe