From fcb28cdc4b0c0d40c5bb4321e703e8ec49411289 Mon Sep 17 00:00:00 2001 From: nandithebull Date: Sat, 28 Nov 2026 21:17:55 -0800 Subject: [PATCH] ci: use depot-ubuntu-24.04-4 runners for rolling release workflow --- .gitea/workflows/rolling-release.yml | 48 +++++++++++++++++++--------- 1 file changed, 33 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/rolling-release.yml b/.gitea/workflows/rolling-release.yml index dc62231..ff14da5 100644 --- a/.gitea/workflows/rolling-release.yml +++ b/.gitea/workflows/rolling-release.yml @@ -12,21 +12,19 @@ concurrency: cancel-in-progress: true jobs: - build-and-release: - name: Build & Publish Rolling Release - runs-on: ubuntu-latest - container: - image: git.site.latha.org/cluster-services/android-sdk:latest - timeout-minutes: 45 + test: + name: Test (MoonBit, Extension, Scripts) + runs-on: depot-ubuntu-24.04-4 + timeout-minutes: 20 steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Install native & packaging dependencies + - name: Ensure native C toolchain run: | - apt-get update -qq - apt-get install -y -qq --no-install-recommends gcc libc6-dev squashfs-tools librsvg2-bin >/dev/null + command -v gcc >/dev/null 2>&1 || { + sudo apt-get update -qq + sudo apt-get install -y -qq --no-install-recommends gcc libc6-dev >/dev/null + } - name: Install MoonBit toolchain run: | @@ -52,8 +50,31 @@ jobs: scripts/moon_i2p_native_host.py \ scripts/publish_rolling_release.py + release: + name: Build & Publish Rolling Release + needs: test + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch') + runs-on: depot-ubuntu-24.04-4 + container: git.site.latha.org/cluster-services/android-sdk:latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install native & packaging dependencies + run: | + apt-get update -qq + apt-get install -y -qq --no-install-recommends gcc libc6-dev squashfs-tools librsvg2-bin >/dev/null + + - name: Install MoonBit toolchain + run: | + curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash + echo "$HOME/.moon/bin" >> "$GITHUB_PATH" + "$HOME/.moon/bin/moon" version --all + "$HOME/.moon/bin/moon" update + - name: Compute release version metadata - if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch') run: | ext_ver=$(python3 -c 'import json; print(json.load(open("extensions/firefox-i2p-torrent/manifest.json"))["version"])') short_sha="${GITHUB_SHA:0:7}" @@ -64,13 +85,11 @@ jobs: } >> "$GITHUB_ENV" - name: Build Linux x86_64 AppImage & Firefox XPI - if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch') run: | python3 scripts/build_appimage.py bash -n .cache/appimage/AppDir/AppRun - name: Build Android APK - if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch') env: ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }} ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }} @@ -79,7 +98,6 @@ jobs: run: python3 scripts/build_apk.py - name: Publish rolling release - if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch') env: GITEA_TOKEN: ${{ github.token }} APK_SIGNED_WITH: ${{ secrets.ANDROID_KEYSTORE_B64 != '' && 'release' || 'debug' }}