From c7638a2f4e91b5da2e895fd1dc62c5886d68d1c8 Mon Sep 17 00:00:00 2001 From: Lucas Rayan Date: Fri, 30 Oct 2026 13:42:35 -0300 Subject: [PATCH] ci: build the desktop app (Linux and Windows) automatically on release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mirrors Guará's release workflow. No signing key needed here: Sabiá's updater is the custom module in sabia-core, not the Tauri plugin. Co-Authored-By: Claude Sonnet 5.5 --- .gitea/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 6ea5e5b..21b8473 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -70,3 +70,37 @@ jobs: TOKEN: ${{ gitea.token }} API: ${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }} run: scripts/release-upload.sh "${{ gitea.ref_name }}" $(cat packages.txt) + + gui: + name: App desktop (${{ matrix.platform }}) + needs: release + runs-on: ubuntu-latest + env: + CARGO_TARGET_DIR: /opt/hostedtoolcache/cargo-target/sabia-release-gui + strategy: + fail-fast: false + matrix: + platform: [linux, windows] + steps: + - uses: actions/checkout@v7 + - uses: dtolnay/rust-toolchain@stable + - uses: actions/setup-node@v7 + with: + node-version: 22 + - name: Dependências do Tauri (Linux) + if: matrix.platform == 'linux' + timeout-minutes: 25 + run: scripts/apt-install.sh ~/apt-cache libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf + - name: Ferramentas para compilação cruzada (Windows) + if: matrix.platform == 'windows' + run: | + apt-get update -qq + apt-get install -y -qq nsis lld llvm clang + command -v cargo-xwin >/dev/null || cargo install cargo-xwin --locked + - name: Compila e empacota + run: scripts/build-gui.sh "${{ matrix.platform }}" + - name: Anexa à release + env: + TOKEN: ${{ gitea.token }} + API: ${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }} + run: scripts/release-upload.sh "${{ gitea.ref_name }}" dist-gui/*