actions: add build action

This commit is contained in:
Tyler Wilding 2022-04-15 21:47:14 -04:00
parent 5355e3ff35
commit 00a3457bb7
No known key found for this signature in database
GPG key ID: A89403EB356ED106
2 changed files with 49 additions and 2 deletions

47
.github/workflows/build.yaml vendored Normal file
View file

@ -0,0 +1,47 @@
name: Build
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
jobs:
tauri:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 16
- name: install Rust stable
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 app dependencies and build it
run: |
npm ci
npm run build
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -3,10 +3,10 @@ name: Linter
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
tauri: