From 5dd77abb0f32d9d52c6cebe4a33f937fa3ce36cb Mon Sep 17 00:00:00 2001 From: Nix Date: Wed, 13 May 2026 13:55:08 +0800 Subject: [PATCH] ci: add Gitea Actions binary build pipeline --- .gitea/workflows/build-binaries.yml | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .gitea/workflows/build-binaries.yml diff --git a/.gitea/workflows/build-binaries.yml b/.gitea/workflows/build-binaries.yml new file mode 100644 index 0000000..de7467f --- /dev/null +++ b/.gitea/workflows/build-binaries.yml @@ -0,0 +1,50 @@ +name: build-binaries + +on: + push: + branches: + - main + tags: + - 'v*' + workflow_dispatch: + +jobs: + linux: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install OS deps + run: | + sudo apt-get update + sudo apt-get install -y python3-venv libfuse2 wget + + - name: Build Linux binary + run: bash build/build_linux.sh + + - name: Install appimagetool + run: | + wget -O /tmp/appimagetool.AppImage \ + https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage + chmod +x /tmp/appimagetool.AppImage + sudo mv /tmp/appimagetool.AppImage /usr/local/bin/appimagetool + + - name: Build AppImage + run: bash build/build_appimage.sh + + - name: Upload binary artifacts + uses: actions/upload-artifact@v4 + with: + name: TrulyMEM-linux-${{ github.sha }} + path: | + dist/TrulyMEM + dist/TrulyMEM.desktop + dist/TrulyMEM.AppImage + if-no-files-found: error + retention-days: 30