From a97181a1c257e1743194cce43006e47e141bb466 Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Fri, 6 Mar 2026 17:24:41 +0100 Subject: [PATCH] ci: add GitHub and Gitea Actions release workflows Builds Linux (.deb, .AppImage, .rpm) and Windows (.exe, .msi) bundles on tag push (v*). Gitea workflow uses self-hosted runner labels (linux / windows); GitHub workflow uses hosted ubuntu-22.04 / windows-latest. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/release.yml | 61 +++++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 61 +++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 .gitea/workflows/release.yml create mode 100644 .github/workflows/release.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..fd58802 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,61 @@ +name: Release + +on: + push: + tags: ['v*'] + +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - runner: linux + target: x86_64-unknown-linux-gnu + - runner: windows + target: x86_64-pc-windows-msvc + + runs-on: ${{ matrix.runner }} + + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + + - name: Install Linux system dependencies + if: matrix.runner == 'linux' + run: | + sudo apt-get update + sudo apt-get install -y \ + libwebkit2gtk-4.1-dev \ + libappindicator3-dev \ + librsvg2-dev \ + patchelf + + - name: Install JS dependencies + run: pnpm install + + - name: Build + uses: tauri-apps/tauri-action@v0 + with: + args: --target ${{ matrix.target }} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: owlerlay-${{ matrix.runner }} + path: | + src-tauri/target/${{ matrix.target }}/release/bundle/ + if-no-files-found: warn diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..59c4787 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,61 @@ +name: Release + +on: + push: + tags: ['v*'] + +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-22.04 + target: x86_64-unknown-linux-gnu + - os: windows-latest + target: x86_64-pc-windows-msvc + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + + - name: Install Linux system dependencies + if: matrix.os == 'ubuntu-22.04' + run: | + sudo apt-get update + sudo apt-get install -y \ + libwebkit2gtk-4.1-dev \ + libappindicator3-dev \ + librsvg2-dev \ + patchelf + + - name: Install JS dependencies + run: pnpm install + + - name: Build + uses: tauri-apps/tauri-action@v0 + with: + args: --target ${{ matrix.target }} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: owlerlay-${{ matrix.os }} + path: | + src-tauri/target/${{ matrix.target }}/release/bundle/ + if-no-files-found: warn