Release #4
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: Release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: "Release version tag (e.g. v0.1.0-alpha)" | |
| required: true | |
| default: "v0.1.0-alpha" | |
| # No push or tag triggers — release is always initiated manually. | |
| jobs: | |
| build: | |
| name: Build (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: apps/desktop/package-lock.json | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: apps/desktop/src-tauri | |
| - name: Install system dependencies (Linux only) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| libgtk-3-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| patchelf | |
| - name: Install frontend dependencies | |
| run: npm --prefix apps/desktop ci | |
| - name: Fetch Rust dependencies | |
| working-directory: apps/desktop/src-tauri | |
| run: cargo fetch || (sleep 10 && cargo fetch) | |
| - name: Run quality gates | |
| run: npm --prefix apps/desktop run check | |
| - name: Build Tauri app | |
| run: npm --prefix apps/desktop run tauri:build | |
| env: | |
| # macOS notarization and Windows code-signing are not configured in this workflow. | |
| # Set TAURI_SIGNING_PRIVATE_KEY and related secrets in repository settings | |
| # when code-signing is ready to enable. | |
| TAURI_SKIP_DEVSERVER_CHECK: "true" | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: airbridge-${{ inputs.version }}-${{ runner.os }} | |
| path: | | |
| apps/desktop/src-tauri/target/release/bundle/ | |
| if-no-files-found: warn | |
| retention-days: 30 |