Skip to content

chore: clean up benchmarking plan and design plans #9

chore: clean up benchmarking plan and design plans

chore: clean up benchmarking plan and design plans #9

Workflow file for this run

name: Build Desktop Application
on:
push:
branches:
- main
- feature/desktop-ci-cd
jobs:
build-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: macos-latest
artifact-name: macOS-dmg
path: target/release/bundle/dmg/*.dmg
- platform: windows-latest
artifact-name: Windows-exe
path: target/release/bundle/nsis/*.exe
- platform: ubuntu-22.04
artifact-name: Linux-packages
path: |
target/release/bundle/deb/*.deb
target/release/bundle/appimage/*.AppImage
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install system dependencies (Linux only)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libgtk-3-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: swatinem/rust-cache@v2
with:
workspaces: 'src-tauri -> target'
- name: Build Tauri app
uses: tauri-apps/tauri-action@v0
id: tauri
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: v__VERSION__
releaseName: 'App v__VERSION__'
releaseBody: 'Automatic build from CI/CD pipeline'
releaseDraft: true
prerelease: false
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}
path: ${{ matrix.path }}