Compare commits

...

2 Commits

Author SHA1 Message Date
irene 47d849a122 ci: split into fast analyze + slow release build with path gating
analyze runs on every push/PR (fast check).
release-apk only fires on push to master or workflow_dispatch (slow build).
Doc-only pushes no longer trigger any CI run.
workflow_dispatch triggers both jobs unconditionally.
2026-08-27 23:58:02 +09:00
irene ba7f335b67 ci: split into fast analyze + slow release build with path gating
analyze job runs on push/PR regardless of changed files (fast check).
release-apk job only fires when Dart source, Android, pubspec, or
tooling files change on push to master (slow build).
workflow_dispatch triggers both jobs unconditionally.
Doc-only pushes no longer trigger any CI run.
2026-08-27 23:56:31 +09:00
+9 -3
View File
@@ -3,11 +3,15 @@ name: CI
on:
push:
branches: [ master ]
paths:
- 'lib/**.dart'
- 'test/**.dart'
- 'android/**'
- 'pubspec.yaml'
- 'pubspec.lock'
- 'images/**'
pull_request:
branches: [ master ]
# Manual trigger. Worth having on a self-hosted runner: when a run fails for
# reasons outside the repo — the runner was down, a toolchain changed — this
# re-runs it without an empty commit to force one.
workflow_dispatch:
# Both jobs target a self-hosted runner, by capability rather than by hostname.
@@ -47,6 +51,8 @@ jobs:
release-apk:
name: Release APK
runs-on: flutter-android
needs: [analyze]
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4