fix: relax ANDROID_HOME validation (check env var, not dir access)
Some checks failed
Build & Deploy APK / build (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
admin
2026-03-25 21:12:09 +01:00
parent 21a4c7fb80
commit 24aae5a5e2

View File

@@ -17,7 +17,8 @@ jobs:
run: | run: |
echo "Java: $(java --version 2>&1 | head -1)" echo "Java: $(java --version 2>&1 | head -1)"
echo "ANDROID_HOME: $ANDROID_HOME" echo "ANDROID_HOME: $ANDROID_HOME"
test -d "$ANDROID_HOME" || { echo "ERROR: ANDROID_HOME not set"; exit 1; } test -n "$ANDROID_HOME" || { echo "ERROR: ANDROID_HOME not set"; exit 1; }
ls "$ANDROID_HOME/platforms" > /dev/null 2>&1 || echo "WARNING: Cannot list ANDROID_HOME (permissions?), build may still work via gradle"
- name: Build Release APK - name: Build Release APK
run: | run: |