ci: use depot-ubuntu-24.04-4 runners for rolling release workflow
This commit is contained in:
1 parent
08e8e258c2
commit
fcb28cdc4b
1 file changed
+33
-15
@@ -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' }}
|
||||
|
||||
Reference in new issue
Block a user