fix: relax ANDROID_HOME validation (check env var, not dir access)
Some checks failed
Build & Deploy APK / build (push) Has been cancelled
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:
@@ -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: |
|
||||||
|
|||||||
Reference in New Issue
Block a user