From 38279ed0cfc54043a4c49f9b9f67a5e272ef74c2 Mon Sep 17 00:00:00 2001 From: robot Date: Mon, 3 Aug 2026 05:24:56 +0000 Subject: [PATCH] fix(ci): scope flutter analyze to lib/ test/ + export ANDROID_HOME in build steps 1. flutter analyze was scanning the entire working directory including the downloaded Flutter SDK which has intentional errors. Scoped to lib/ test/. 2. ANDROID_HOME set in 'Install Android SDK' step does NOT persist to build steps. Added export ANDROID_HOME to both APK and AAB build steps. --- .gitea/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bf1bb89..8592bca 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -65,7 +65,7 @@ jobs: - name: Analyze Dart code run: | export PATH="$PWD/flutter/bin:$PATH" - flutter analyze + flutter analyze lib/ test/ - name: Auto-format source run: | @@ -188,12 +188,14 @@ jobs: - name: Build APK (release) run: | export JAVA_HOME="$HOME/jdk" + export ANDROID_HOME="${HOME}/android-sdk" export PATH="$PWD/flutter/bin:$PATH" flutter build apk --release - name: Build App Bundle (release) run: | export JAVA_HOME="$HOME/jdk" + export ANDROID_HOME="${HOME}/android-sdk" export PATH="$PWD/flutter/bin:$PATH" flutter build appbundle --release