Release #2
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: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Release tag (e.g. v0.1.2)' | |
| required: true | |
| default: 'v0.1.0' | |
| jobs: | |
| release: | |
| name: Build & Release (Windows cross-compile on Ubuntu) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # ── System deps ───────────────────────────────────────────────────────── | |
| - name: Install cross-compilation tools | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y --no-install-recommends \ | |
| gcc-mingw-w64-x86-64 \ | |
| g++-mingw-w64-x86-64 \ | |
| nsis \ | |
| llvm \ | |
| clang \ | |
| libssl-dev \ | |
| pkg-config | |
| # ── Bun + frontend ────────────────────────────────────────────────────── | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install frontend dependencies | |
| run: bun install | |
| # ── Rust ──────────────────────────────────────────────────────────────── | |
| - name: Set up Rust (stable) + Windows target | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: x86_64-pc-windows-gnu | |
| - name: Cache Rust build | |
| uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: './src-tauri -> target' | |
| # Point cargo at the mingw linker for the Windows target | |
| - name: Configure cargo cross-linker | |
| run: | | |
| mkdir -p ~/.cargo | |
| cat >> ~/.cargo/config.toml << 'EOF' | |
| [target.x86_64-pc-windows-gnu] | |
| linker = "x86_64-w64-mingw32-gcc" | |
| ar = "x86_64-w64-mingw32-ar" | |
| EOF | |
| # ── Build & release ───────────────────────────────────────────────────── | |
| - name: Build & publish Tauri release | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Tell Tauri to cross-compile for Windows | |
| TAURI_TARGET: x86_64-pc-windows-gnu | |
| with: | |
| args: --target x86_64-pc-windows-gnu | |
| tagName: ${{ github.event.inputs.tag || github.ref_name }} | |
| releaseName: '⚡ Process Manager ${{ github.event.inputs.tag || github.ref_name }}' | |
| releaseBody: | | |
| ## What's Changed | |
| See the full changelog below, auto-generated from commits since the last release. | |
| releaseDraft: false | |
| prerelease: false | |
| generateReleaseNotes: true | |
| includeUpdaterJson: false |