mirror of
https://github.com/open-goal/launcher.git
synced 2024-10-20 04:57:38 -04:00
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
name: 🔨 Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- v*
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
name: App
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-20.04, windows-latest, macos-12]
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: yarn
|
|
|
|
- name: Install Rust Stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
name: Cache Rust Build
|
|
with:
|
|
shared-key: tauri-build-${{ matrix.platform }}
|
|
workspaces: src-tauri
|
|
|
|
- name: Install Linux Dependencies
|
|
if: matrix.platform == 'ubuntu-20.04'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
|
|
|
|
- name: Install NPM Dependencies
|
|
run: |
|
|
yarn install --frozen-lockfile
|
|
yarn build
|
|
|
|
- uses: tauri-apps/tauri-action@v0
|
|
name: Build Tauri App
|
|
timeout-minutes: 30
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
|