5.0.0 - Move backend and frontend into main rust application #2631
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "CI" | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install dependencies (ubuntu only) | |
if: matrix.platform == 'ubuntu-latest' | |
run: | | |
sudo apt update | |
sudo apt install \ | |
libwebkit2gtk-4.0-dev \ | |
build-essential \ | |
curl \ | |
wget \ | |
file \ | |
libssl-dev \ | |
libgtk-3-dev \ | |
libayatana-appindicator3-dev \ | |
librsvg2-dev | |
- name: Rust setup | |
uses: dtolnay/rust-toolchain@stable | |
- name: Rust cache | |
uses: swatinem/[email protected] | |
with: | |
workspaces: "./src-tauri -> target" | |
- name: Sync node version and setup cache | |
uses: actions/[email protected] | |
with: | |
node-version: "lts/*" | |
cache: "yarn" | |
- name: Install frontend dependencies | |
run: yarn install | |
- name: Build the app | |
uses: tauri-apps/[email protected] | |
- name: Publish artifacts | |
uses: actions/[email protected] | |
with: | |
name: tauri-app-${{ matrix.platform }} | |
path: | | |
src-tauri/target/release/bundle |