-
Notifications
You must be signed in to change notification settings - Fork 172
49 lines (45 loc) · 1.47 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
name: Test Build Tauri
on:
push:
jobs:
build:
name: "Test Build"
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
name: linux
- os: macos-latest
name: mac
- os: windows-latest
name: win
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: "yarn"
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install dependencies (ubuntu only)
if: matrix.os == '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 NPM Packages
run: |
yarn install --immutable --network-timeout 120000
- name: Build
run: yarn build:tauri
# Possibly set up some basic unit testing just to make sure parts render and none of the libraries are straight up breaking
- uses: actions/upload-artifact@v2
with:
name: built-app-${{ matrix.name }}
path: |
app/tauri/target/release/bundle/deb/*.deb
app/tauri/target/release/bundle/appimage/*.AppImage
app/tauri/target/release/bundle/msi/*.msi
app/tauri/target/release/bundle/dmg/*.dmg
app/tauri/target/release/bundle/macos/*.app