CI/CD Pipeline Integration: iOS + Android stages with Gitea-native syntax #11
+7
-17
@@ -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
|
||||
|
||||
Reference in new issue
Block a user
see, I ❤️ how this is hard coding a specific version of a framework - THIS helps make the development process of this app a monolith!