diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml index 2359b7b..7ff15ea 100644 --- a/.github/workflows/android-build.yml +++ b/.github/workflows/android-build.yml @@ -46,6 +46,16 @@ jobs: channel: stable cache: true + - name: Create Flutter local.properties + shell: bash + run: | + set -euo pipefail + test -n "${FLUTTER_ROOT:-}" || { echo "FLUTTER_ROOT is not set"; exit 1; } + test -d "$FLUTTER_ROOT" || { echo "Flutter SDK not found at $FLUTTER_ROOT"; exit 1; } + printf 'flutter.sdk=%s\n' "$FLUTTER_ROOT" > android/local.properties + test -s android/local.properties + cat android/local.properties + - name: Provision Android SDK shell: bash run: | @@ -134,6 +144,16 @@ jobs: channel: stable cache: true + - name: Create Flutter local.properties + shell: bash + run: | + set -euo pipefail + test -n "${FLUTTER_ROOT:-}" || { echo "FLUTTER_ROOT is not set"; exit 1; } + test -d "$FLUTTER_ROOT" || { echo "Flutter SDK not found at $FLUTTER_ROOT"; exit 1; } + printf 'flutter.sdk=%s\n' "$FLUTTER_ROOT" > android/local.properties + test -s android/local.properties + cat android/local.properties + - name: Provision Android SDK shell: bash run: |