From 449e345e3efac12512ffc7ac0c7383d7baa92d74 Mon Sep 17 00:00:00 2001 From: Irene Date: Thu, 27 Aug 2026 13:17:43 +0900 Subject: [PATCH] ci: add CI workflow (analyze + release APK) - Modelled on iperf3-gui: analyze job on flutter-android runner. - flutter analyze + flutter build apk --release. - Uploads release APK as artifact. --- .github/workflows/ci.yaml | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..e59f53f --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,41 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +# Target the self-hosted Flutter/Android runner at the android-stuff org. +# See tool/setup_ci_runner.sh for how that runner is provisioned. +# +# The runner is host-mode so the same JDK 17 + Android SDK + Flutter +# toolchain is used as the verified release — nothing installs per-run. + +jobs: + analyze: + name: Analyze & Build + runs-on: flutter-android + steps: + - uses: actions/checkout@v4 + + - name: Toolchain + run: | + flutter --version + echo "ANDROID_HOME=${ANDROID_HOME:?not set on this runner}" + + - name: Get dependencies + run: flutter pub get + + - name: Analyze + run: flutter analyze + + - name: Build release APK + run: flutter build apk --release + + - uses: actions/upload-artifact@v4 + with: + name: app-release-apk + path: build/app/outputs/flutter-apk/app-release.apk + if-no-files-found: error