Skip to content

Commit 48f120c

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
Fix E2E: use full paths for sdkmanager and avdmanager
These tools are not on PATH by default on GitHub Actions runners. Use $ANDROID_HOME/cmdline-tools/latest/bin/ prefix.
1 parent ce7dc0a commit 48f120c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ jobs:
7575
7676
- name: Install Android SDK components and NDK
7777
run: |
78-
yes | sdkmanager --install \
78+
SDKMANAGER="$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager"
79+
AVDMANAGER="$ANDROID_HOME/cmdline-tools/latest/bin/avdmanager"
80+
yes | "$SDKMANAGER" --install \
7981
"platform-tools" \
8082
"emulator" \
8183
"system-images;android-35;google_apis;x86_64" \
@@ -88,7 +90,7 @@ jobs:
8890
8991
- name: Create AVD
9092
run: |
91-
echo "no" | avdmanager create avd \
93+
echo "no" | "$ANDROID_HOME/cmdline-tools/latest/bin/avdmanager" create avd \
9294
-n e2e_examples -k "system-images;android-35;google_apis;x86_64" --force
9395
9496
- name: Start emulator

0 commit comments

Comments
 (0)