chore: improve mobile, remove @tauri-apps/plugin-fs from project depe… #159
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 | |
| paths: | |
| - ".github/workflows/ci.yml" | |
| - "src/**" | |
| - "src-tauri/src/**" | |
| - "src-tauri/capabilities/**" | |
| - "src-tauri/icons/**" | |
| - "src-tauri/Cargo.toml" | |
| - "src-tauri/Cargo.lock" | |
| - "src-tauri/tauri.conf.json" | |
| - "src-tauri/build.rs" | |
| - "codex-client/**" | |
| - "codex-bindings/**" | |
| - "Cargo.toml" | |
| - "package.json" | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "src/**" | |
| - "src-tauri/src/**" | |
| - "src-tauri/capabilities/**" | |
| - "src-tauri/icons/**" | |
| - "src-tauri/Cargo.toml" | |
| - "src-tauri/Cargo.lock" | |
| - "src-tauri/tauri.conf.json" | |
| - "src-tauri/build.rs" | |
| - "codex-client/**" | |
| - "codex-bindings/**" | |
| - "Cargo.toml" | |
| - "package.json" | |
| env: | |
| VITE_REDIRECT_URL: ${{ secrets.VITE_REDIRECT_URL }} | |
| VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }} | |
| VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} | |
| TAURI_BUNDLE: all | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| name: Build Linux x86_64 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Linux dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Setup Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "." | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Build Tauri App | |
| run: | | |
| bun run export:bindings | |
| bun tauri build --bundles deb |