free tier v0.6.0 #1
Workflow file for this run
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: Build & Release | |
| # Runs when you push a version tag like v0.5.0 | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| # Allow the workflow to create GitHub Releases | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| label: win-x64 | |
| - platform: macos-latest | |
| target: aarch64-apple-darwin | |
| label: mac-arm64 | |
| - platform: macos-13 | |
| target: x86_64-apple-darwin | |
| label: mac-x64 | |
| - platform: ubuntu-22.04 | |
| target: x86_64-unknown-linux-gnu | |
| label: linux-x64 | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # --- System dependencies (Linux only) --- | |
| - name: Install Linux dependencies | |
| if: matrix.platform == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| libappindicator3-dev \ | |
| librsvg2-dev \ | |
| patchelf \ | |
| libgtk-3-dev \ | |
| libsoup-3.0-dev \ | |
| libjavascriptcoregtk-4.1-dev | |
| # --- Node.js --- | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install npm dependencies | |
| run: npm ci | |
| # --- Rust --- | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Cache Rust build | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| src-tauri/target | |
| key: ${{ matrix.target }}-cargo-${{ hashFiles('src-tauri/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ matrix.target }}-cargo- | |
| # --- Build --- | |
| - name: Build Tauri app | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tagName: ${{ github.ref_name }} | |
| releaseName: "Video Analytics ${{ github.ref_name }}" | |
| releaseBody: | | |
| Download the installer for your platform below. | |
| | Platform | File | | |
| |----------|------| | |
| | Windows | `.exe` (NSIS installer) | | |
| | macOS (Apple Silicon) | `.dmg` | | |
| | macOS (Intel) | `.dmg` | | |
| | Linux | `.deb` or `.AppImage` | | |
| releaseDraft: true | |
| prerelease: false | |
| args: --target ${{ matrix.target }} |