Skip to content

Commit 0869337

Browse files
authored
Update android-build1.yml
1 parent ccc91eb commit 0869337

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/android-build1.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,19 @@ jobs:
7474
echo "ANDROID_SDK_ROOT=$HOME/Android" >> $GITHUB_ENV
7575
echo "PATH=$PATH:$HOME/Android/platform-tools:$HOME/Android/emulator" >> $GITHUB_ENV
7676
77-
- name: Verify Android Emulator installation
77+
- name: Create Android Virtual Device (AVD)
7878
run: |
79-
ls -l $HOME/Android/emulator
79+
echo "no" | $HOME/Android/cmdline-tools/bin/avdmanager create avd -n test_avd -k "system-images;android-27;default;x86_64" --force
8080
8181
- name: Start Android Emulator
8282
run: |
8383
$ANDROID_HOME/emulator/emulator -avd test_avd -no-window -no-audio -gpu off &
8484
adb wait-for-device
8585
86+
- name: Verify Emulator is Running
87+
run: |
88+
adb devices
89+
8690
- name: Create Android build
8791
run: |
8892
./build.sh --android --android_api=27 --android_ndk_path=${ANDROID_NDK_LATEST_HOME} --config=RelWithDebInfo --android_abi=${{ env.ANDROID_ABI }} --parallel --build_java --update

0 commit comments

Comments
 (0)