From e99591c2011a5cb51c44ada8ee13fdb7f0aee3b3 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Tue, 4 Aug 2026 22:58:33 -0400 Subject: [PATCH] =?UTF-8?q?ci:=20ajout=20job=20release=20=E2=80=94=20build?= =?UTF-8?q?=20multi-arch=20+=20release=20auto=20sur=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build sur tags v*: linux x86_64, linux arm64, windows x86_64. Release Gitea créée automatiquement avec les 3 binaires attachés. --- .gitea/workflows/ci.yml | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index fc416a7..3837d89 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -3,6 +3,7 @@ name: CI on: push: branches: [main] + tags: ['v*'] pull_request: branches: [main] @@ -29,3 +30,52 @@ jobs: run: | ./ntfy-bridge --version ./ntfy-bridge --help + + release: + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/v') + needs: test + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install V + run: | + git clone --depth 1 https://github.com/vlang/v /opt/v + cd /opt/v && make + ln -s /opt/v/v /usr/local/bin/v + + - name: Build Linux x86_64 + run: v -prod -os linux -arch amd64 -o build/ntfy-bridge-linux-x86_64 . + + - name: Build Linux arm64 (Raspberry Pi) + run: v -prod -os linux -arch arm64 -o build/ntfy-bridge-linux-arm64 . + + - name: Build Windows x86_64 + run: v -prod -os windows -arch amd64 -o build/ntfy-bridge-windows-x86_64.exe . + + - name: Create Gitea Release + uses: https://gitea.com/actions/release-action@v1 + with: + files: | + build/ntfy-bridge-linux-x86_64 + build/ntfy-bridge-linux-arm64 + build/ntfy-bridge-windows-x86_64.exe + body: | + ## ntfy-bridge ${GITHUB_REF##*/} + + Binaires statiques prêts à l'emploi — zéro dépendance. + + ### Téléchargements + - **Linux x86_64** : `ntfy-bridge-linux-x86_64` + - **Linux arm64** (Raspberry Pi) : `ntfy-bridge-linux-arm64` + - **Windows x86_64** : `ntfy-bridge-windows-x86_64.exe` + + ### Installation + ```bash + chmod +x ntfy-bridge-linux-x86_64 + sudo mv ntfy-bridge-linux-x86_64 /usr/local/bin/ntfy-bridge + ntfy-bridge --install-service + ``` + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}