CI/CD Pipeline Integration: iOS + Android stages with Gitea-native syntax #11

Merged
kfj001 merged 64 commits from ci/pipeline-integration into main 2026-08-03 20:16:03 -07:00
Showing only changes of commit f6faa0f75a - Show all commits
+20 -17
View File
@@ -2,10 +2,9 @@
# Triggers on push and pull_request
# Stages: lint -> test -> build (Android + iOS) -> artifacts
#
# NOTE: All jobs run on 'ubuntu-latest' which Gitea's act runner maps to the
# self-hosted macOS (ARM64) machine. We use direct SDK downloads because
# subosito/flutter-action and actions/setup-java query GitHub APIs that are
# unreachable from the self-hosted runner.
# Runner mapping:
# - ubuntu-latest → act runner in Linux Docker container (needs Linux SDKs)
# - [self-hosted, macos] → native macOS ARM64 host (needs macOS SDKs)
name: CI
1
@@ -31,10 +30,10 @@ jobs:
- name: Setup Flutter
run: |
# Direct Flutter SDK download (macOS/ARM64 — act runner on Mac)
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.44.8-stable.zip" \
-o flutter.zip
unzip -q flutter.zip
# Direct Flutter SDK download — Linux container (act runner)
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.44.8-stable.tar.xz" \
-o flutter.tar.xz
Outdated
Review

but this isn't a monolithic practice... let's use 24.04 which is the latest numbered version as of 'now'. I would prefer all ubuntu-latest's be replaced specifically with 24.04.

but this isn't a monolithic practice... let's use 24.04 which is the latest numbered version as of 'now'. I would prefer all ubuntu-latest's be replaced specifically with 24.04.
tar -xf flutter.tar.xz
export PATH="$PWD/flutter/bin:$PATH"
flutter --version
echo "$PWD/flutter/bin" >> "$GITHUB_PATH" || echo "$PWD/flutter/bin" >> "$HOME/.env_path"
@@ -64,9 +63,10 @@ jobs:
- name: Setup Flutter
run: |
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.44.8-stable.zip" \
-o flutter.zip
unzip -q flutter.zip
# Direct Flutter SDK download — Linux container (act runner)
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.44.8-stable.tar.xz" \
-o flutter.tar.xz
tar -xf flutter.tar.xz
export PATH="$PWD/flutter/bin:$PATH"
flutter --version
echo "$PWD/flutter/bin" >> "$GITHUB_PATH" || echo "$PWD/flutter/bin" >> "$HOME/.env_path"
@@ -92,8 +92,8 @@ jobs:
- name: Setup Java 17
run: |
# Direct Temurin JDK download (macOS ARM64)
curl -fsSL "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.12_7.tar.gz" \
# Direct Temurin JDK download — Linux container
curl -fsSL "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.12_7.tar.gz" \
-o jdk.tar.gz
mkdir -p "$HOME/jdk"
tar -xzf jdk.tar.gz -C "$HOME/jdk" --strip-components=1
@@ -105,9 +105,10 @@ jobs:
- name: Setup Flutter
run: |
Outdated
Review

versioning....

versioning....
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.44.8-stable.zip" \
-o flutter.zip
unzip -q flutter.zip
# Direct Flutter SDK download — Linux container
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.44.8-stable.tar.xz" \
-o flutter.tar.xz
tar -xf flutter.tar.xz
export PATH="$PWD/flutter/bin:$PATH"
flutter --version
echo "$PWD/flutter/bin" >> "$GITHUB_PATH" || echo "$PWD/flutter/bin" >> "$HOME/.env_path"
@@ -116,7 +117,7 @@ jobs:
run: |
export ANDROID_HOME="${HOME}/android-sdk"
mkdir -p "${ANDROID_HOME}/cmdline-tools"
curl -fsSL "https://dl.google.com/android/repository/commandlinetools-mac-11076708_latest.zip" -o cmdline-tools.zip
curl -fsSL "https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip" -o cmdline-tools.zip
unzip -q cmdline-tools.zip -d "${ANDROID_HOME}/cmdline-tools"
mv "${ANDROID_HOME}/cmdline-tools/cmdline-tools" "${ANDROID_HOME}/cmdline-tools/latest"
export PATH="${ANDROID_HOME}/cmdline-tools/latest/bin:${PATH}"
1
@@ -174,6 +175,7 @@ jobs:
# ── Stage 3 (parallel): iOS build ───────────────────────────────
# Runs natively on macOS ARM64 host (not in Docker)
build-ios:
name: Build iOS
runs-on: [self-hosted, macos]
@@ -184,6 +186,7 @@ jobs:
- name: Setup Flutter
run: |
# Direct Flutter SDK download — macOS ARM64 host (native)
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.44.8-stable.zip" \
-o flutter.zip
unzip -q flutter.zip