Skip to content

Commit 0188188

Browse files
committed
fix: set ANDROID_HOME environment variable and create local.properties for Android SDK
1 parent e89de64 commit 0188188

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ jobs:
103103
restore-keys: |
104104
${{ runner.os }}-gradle-
105105
106+
- name: Set ANDROID_HOME env var
107+
run: echo "ANDROID_HOME=/usr/local/share/android/sdk" >> $GITHUB_ENV
108+
109+
- name: Create local.properties for Android SDK
110+
run: echo "sdk.dir=$ANDROID_HOME" > example/android/local.properties
111+
106112
- name: Build example for Android
107113
env:
108114
JAVA_OPTS: "-XX:MaxHeapSize=6g"

0 commit comments

Comments
 (0)