ci: use depot-ubuntu-24.04-4 runners for rolling release workflow
Rolling Release / Test (MoonBit, Extension, Scripts) (push) Successful in 19s
Rolling Release / Build & Publish Rolling Release (push) Successful in 2m26s

This commit is contained in:
nandi committed 2026-11-28 21:17:55 -08:00
1 parent 08e8e258c2
commit fcb28cdc4b
1 file changed
+33 -15
+33 -15
View File
@@ -12,21 +12,19 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
build-and-release: test:
name: Build & Publish Rolling Release name: Test (MoonBit, Extension, Scripts)
runs-on: ubuntu-latest runs-on: depot-ubuntu-24.04-4
container: timeout-minutes: 20
image: git.site.latha.org/cluster-services/android-sdk:latest
timeout-minutes: 45
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install native & packaging dependencies - name: Ensure native C toolchain
run: | run: |
apt-get update -qq command -v gcc >/dev/null 2>&1 || {
apt-get install -y -qq --no-install-recommends gcc libc6-dev squashfs-tools librsvg2-bin >/dev/null sudo apt-get update -qq
sudo apt-get install -y -qq --no-install-recommends gcc libc6-dev >/dev/null
}
- name: Install MoonBit toolchain - name: Install MoonBit toolchain
run: | run: |
@@ -52,8 +50,31 @@ jobs:
scripts/moon_i2p_native_host.py \ scripts/moon_i2p_native_host.py \
scripts/publish_rolling_release.py scripts/publish_rolling_release.py
- name: Compute release version metadata release:
name: Build & Publish Rolling Release
needs: test
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch') 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
run: | run: |
ext_ver=$(python3 -c 'import json; print(json.load(open("extensions/firefox-i2p-torrent/manifest.json"))["version"])') ext_ver=$(python3 -c 'import json; print(json.load(open("extensions/firefox-i2p-torrent/manifest.json"))["version"])')
short_sha="${GITHUB_SHA:0:7}" short_sha="${GITHUB_SHA:0:7}"
@@ -64,13 +85,11 @@ jobs:
} >> "$GITHUB_ENV" } >> "$GITHUB_ENV"
- name: Build Linux x86_64 AppImage & Firefox XPI - 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: | run: |
python3 scripts/build_appimage.py python3 scripts/build_appimage.py
bash -n .cache/appimage/AppDir/AppRun bash -n .cache/appimage/AppDir/AppRun
- name: Build Android APK - name: Build Android APK
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch')
env: env:
ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }} ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }}
ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }} ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }}
@@ -79,7 +98,6 @@ jobs:
run: python3 scripts/build_apk.py run: python3 scripts/build_apk.py
- name: Publish rolling release - name: Publish rolling release
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch')
env: env:
GITEA_TOKEN: ${{ github.token }} GITEA_TOKEN: ${{ github.token }}
APK_SIGNED_WITH: ${{ secrets.ANDROID_KEYSTORE_B64 != '' && 'release' || 'debug' }} APK_SIGNED_WITH: ${{ secrets.ANDROID_KEYSTORE_B64 != '' && 'release' || 'debug' }}