Skip to content

feat: add linux support #18

feat: add linux support

feat: add linux support #18

Workflow file for this run

name: 'test-on-pr'
on: [pull_request]
# This workflow will build the app without publishing
jobs:
test-tauri:
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
rust_targets: 'aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
rust_targets: 'x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Linux
args: ''
rust_targets: ''
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: install pnpm
run: npm install -g pnpm
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: add Rust targets
if: matrix.rust_targets != ''
run: rustup target add ${{ matrix.rust_targets }}
- name: install frontend dependencies
run: cd apps/desktop && pnpm install
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
projectPath: apps/desktop
args: ${{ matrix.args }}