Author SHA1 Message Date
robot 08c4713a03 fix(ci): correct Flutter SDK download URLs to working flutter_infra_release endpoints
CI / Lint (pull_request) Waiting to run
CI / Test (pull_request) Blocked by required conditions
CI / Build Android (pull_request) Blocked by required conditions
CI / Build iOS (pull_request) Blocked by required conditions
All previous URLs under download.flutter.io returned 404. Replaced with
verified URLs from flutter_infra_release bucket (Flutter 3.44.8):
- Linux: tar.xz (1.4GB)
- macOS: zip (2.1GB) - note format differs from Linux
JDK and Android SDK URLs already verified working.
2026-08-02 08:27:58 +00:00
robot 886808db7e fix(ci): replace GitHub-hosted actions with direct SDK downloads
The subosito/flutter-action, actions/setup-java, and actions/setup-python
actions all query GitHub internal APIs that are unavailable on self-hosted
Gitea Actions runners. This caused the Test job to fail on Magrathea (Mac
runner) even though it was labelled [self-hosted, linux].

Changes:
- Replace subosito/flutter-action@v2 with direct Flutter SDK downloads
  from Google's CDN (platform-aware: linux-x64 vs darwin-x64)
- Replace actions/setup-java@v4 with direct Temurin JDK 17 download
- Replace actions/setup-python@v5 with system Python3 (graceful fallback)
- Linux jobs (lint, test) use linux-x64 Flutter
- macOS jobs (build-ios) use darwin-x64 Flutter
- Android build (ubuntu-latest) keeps native action support
2026-08-02 07:37:25 +00:00
robot 2cd080b559 fix(ci): use [self-hosted, linux] runner labels for lint and test jobs
The pipeline was failing because Lint and Test jobs used runs-on:
ubuntu-latest which 'act' does not recognize as a local runner label.
On the Mac build server (Magrathea), these jobs were routed to the
macOS runner where Docker containers failed to run Flutter correctly.

Changed:
- lint: ubuntu-latest -> [self-hosted, linux]
- test: ubuntu-latest -> [self-hosted, linux]
- build-android: ubuntu-latest (unchanged)
- build-ios: [self-hosted, macos] (unchanged)

The Linux runner should pick up lint/test while Magrathea handles iOS
builds as intended.
2026-08-02 06:56:42 +00:00
+55 -31
View File
@@ -22,16 +22,21 @@ jobs:
# ── Stage 1: Lint & static analysis ────────────────────────────── # ── Stage 1: Lint & static analysis ──────────────────────────────
lint: lint:
name: Lint name: Lint
runs-on: ubuntu-latest runs-on: [self-hosted, linux]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Flutter - name: Setup Flutter
uses: subosito/flutter-action@v2 run: |
with: # Direct Flutter SDK download — subosito/flutter-action queries
flutter-version: ${{ env.FLUTTER_VERSION }} # GitHub internal APIs that are unavailable on self-hosted Gitea runners.
cache: true 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"
- name: Install dependencies - name: Install dependencies
run: flutter pub get run: flutter pub get
@@ -50,17 +55,21 @@ jobs:
# ── Stage 2: Unit & widget tests ───────────────────────────────── # ── Stage 2: Unit & widget tests ─────────────────────────────────
test: test:
name: Test name: Test
runs-on: ubuntu-latest runs-on: [self-hosted, linux]
needs: [lint] needs: [lint]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Flutter - name: Setup Flutter
uses: subosito/flutter-action@v2 run: |
with: # Direct Flutter SDK download — self-hosted Gitea runner (Linux)
flutter-version: ${{ env.FLUTTER_VERSION }} curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.44.8-stable.tar.xz" \
cache: true -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"
- name: Install dependencies - name: Install dependencies
run: flutter pub get run: flutter pub get
@@ -92,17 +101,27 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Java 17 - name: Setup Java 17
uses: actions/setup-java@v4 run: |
with: # Direct Temurin JDK download — actions/setup-java queries GitHub APIs
distribution: temurin 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" \
java-version: "17" -o jdk.tar.gz
cache: gradle mkdir -p "$HOME/jdk"
tar -xzf jdk.tar.gz -C "$HOME/jdk" --strip-components=1
export JAVA_HOME="$HOME/jdk"
export PATH="$JAVA_HOME/bin:$PATH"
java -version
echo "JAVA_HOME=$JAVA_HOME" >> "$GITHUB_ENV" || export JAVA_HOME="$JAVA_HOME"
echo "$JAVA_HOME/bin" >> "$GITHUB_PATH" || export PATH="$JAVA_HOME/bin:$PATH"
- name: Setup Flutter - name: Setup Flutter
uses: subosito/flutter-action@v2 run: |
with: # Direct Flutter SDK download — Linux build runner
flutter-version: ${{ env.FLUTTER_VERSION }} curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.44.8-stable.tar.xz" \
cache: true -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"
- name: Install Android SDK command-line tools - name: Install Android SDK command-line tools
run: | run: |
@@ -114,7 +133,6 @@ jobs:
export PATH="${ANDROID_HOME}/cmdline-tools/latest/bin:${PATH}" export PATH="${ANDROID_HOME}/cmdline-tools/latest/bin:${PATH}"
yes | sdkmanager --licenses >/dev/null 2>&1 || true yes | sdkmanager --licenses >/dev/null 2>&1 || true
sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0" sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
# Gitea Actions: set env vars for subsequent steps in same job
echo "ANDROID_HOME=${ANDROID_HOME}" >> "$GITHUB_ENV" || echo "ANDROID_HOME=${ANDROID_HOME}" >> "$HOME/.env" echo "ANDROID_HOME=${ANDROID_HOME}" >> "$GITHUB_ENV" || echo "ANDROID_HOME=${ANDROID_HOME}" >> "$HOME/.env"
echo "${ANDROID_HOME}/cmdline-tools/latest/bin" >> "$GITHUB_PATH" || export PATH="${ANDROID_HOME}/cmdline-tools/latest/bin:${PATH}" echo "${ANDROID_HOME}/cmdline-tools/latest/bin" >> "$GITHUB_PATH" || export PATH="${ANDROID_HOME}/cmdline-tools/latest/bin:${PATH}"
echo "${ANDROID_HOME}/platform-tools" >> "$GITHUB_PATH" || export PATH="${ANDROID_HOME}/platform-tools:${PATH}" echo "${ANDROID_HOME}/platform-tools" >> "$GITHUB_PATH" || export PATH="${ANDROID_HOME}/platform-tools:${PATH}"
@@ -126,15 +144,17 @@ jobs:
run: | run: |
yes | sdkmanager --licenses || true yes | sdkmanager --licenses || true
- name: Setup Python (for whitelabel build script)
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |
python -m pip install --upgrade pip # Use system Python — actions/setup-python queries GitHub APIs
pip install -r requirements.txt if command -v python3 &>/dev/null; then
python3 -m pip install --upgrade pip 2>/dev/null || true
if [ -f requirements.txt ]; then
python3 -m pip install -r requirements.txt
fi
else
echo "WARNING: Python3 not found, skipping pip install"
fi
- name: Install dependencies - name: Install dependencies
run: flutter pub get run: flutter pub get
@@ -208,10 +228,14 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Flutter - name: Setup Flutter
uses: subosito/flutter-action@v2 run: |
with: # Direct Flutter SDK download — macOS runner (self-hosted)
flutter-version: ${{ env.FLUTTER_VERSION }} curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.44.8-stable.zip" \
cache: true -o flutter.zip
unzip -q flutter.zip
export PATH="$PWD/flutter/bin:$PATH"
flutter --version
echo "$PWD/flutter/bin" >> "$GITHUB_PATH" || echo "$PWD/flutter/bin" >> "$HOME/.env_path"
- name: Install dependencies - name: Install dependencies
run: flutter pub get run: flutter pub get