From 474e2578b69a492ff9cfe286f8df20ec35a7628d Mon Sep 17 00:00:00 2001 From: robot Date: Mon, 3 Aug 2026 06:22:57 +0000 Subject: [PATCH] fix(ci): clean up runner config - pin all jobs to [self-hosted, linux, x64], remove continue-on-error and workaround comments --- .gitea/workflows/ci.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8592bca..8e7ce8b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,14 +1,6 @@ # kryz-go-flutter CI Pipeline # Triggers on push and pull_request -# Stages: lint -> test -> build (Android + iOS) -> artifacts -# -# IMPORTANT: Our self-hosted runners have different architectures: -# - "runner" = x86_64 Linux (works for all jobs) -# - "Magrathea" = ARM64 Mac running x86_64 Linux containers via Docker emulation -# Both register as `ubuntu-latest` so jobs land randomly. -# The x86_64 Flutter binary crashes on Magrathea under Rosetta emulation. -# We use `continue-on-error: true` on lint/test so Magrathea failures don't block. -# Android build detects non-Linux and succeeds as no-op. +# Stages: lint -> test -> build (Android + iOS) # # IMPORTANT: $GITHUB_PATH does NOT persist between steps in Gitea Actions/act. # Each step is a separate shell. We export PATH="$PWD/flutter/bin:$PATH" in @@ -34,11 +26,10 @@ env: FLUTTER_VERSION: "3.44.0" jobs: - # ── Stage 1: Lint & static analysis (best-effort on any runner) ── + # ── Stage 1: Lint & static analysis ── lint: name: Lint - runs-on: ubuntu-latest - continue-on-error: true + runs-on: [self-hosted, linux, x64] steps: - name: Checkout uses: actions/checkout@v4 @@ -73,11 +64,10 @@ jobs: dart format lib/ test/ - # ── Stage 1 (parallel): Unit & widget tests (best-effort) ─────── + # ── Stage 1 (parallel): Unit & widget tests ── test: name: Test - runs-on: ubuntu-latest - continue-on-error: true + runs-on: [self-hosted, linux, x64] steps: - name: Checkout uses: actions/checkout@v4 @@ -109,7 +99,7 @@ jobs: # ── Stage 3: Android build ────────────────────────────────────── build-android: name: Build Android - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] needs: [lint, test] steps: - name: Checkout @@ -217,7 +207,7 @@ jobs: # ── Stage 3 (parallel): iOS build ─────────────────────────────── build-ios: name: Build iOS - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] needs: [lint, test] steps: - name: Checkout