chore: add env dependency; fix macOS FFI signatures and path resoluti… #53
This file contains hidden or 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: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Linux system dependencies (Tauri) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libglib2.0-dev \ | |
| libgtk-3-dev \ | |
| libwebkit2gtk-4.1-dev \ | |
| librsvg2-dev \ | |
| patchelf \ | |
| libasound2-dev \ | |
| libx11-dev \ | |
| libxdo-dev \ | |
| pkg-config \ | |
| libssl-dev \ | |
| libayatana-appindicator3-dev | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: Setup Rust | |
| run: | | |
| rustup toolchain install stable | |
| rustup component add --toolchain stable rustfmt clippy | |
| rustup default stable | |
| - name: Install Tauri CLI | |
| run: cargo install tauri-cli --locked | |
| - name: Install dependencies | |
| working-directory: apps/desktop | |
| run: bun install | |
| - name: Run TypeScript check | |
| working-directory: apps/desktop | |
| run: bun run tsc --noEmit | |
| - name: Run ESLint | |
| working-directory: apps/desktop | |
| run: bun run lint | |
| - name: Run Vite build | |
| working-directory: apps/desktop | |
| run: bun run build | |
| - name: Run Tauri build | |
| working-directory: apps/desktop | |
| run: cargo tauri build |