File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -324,10 +324,13 @@ jobs:
324324 run : |
325325 pushd mobile/src/main/jniLibs && ls -R && popd
326326
327+ - name : Install intel-haxm
328+ if : runner.os == 'macOS'
329+ run : brew install intel-haxm
330+
327331 # # # Below code is majorly from https://github.com/actions/runner-images/issues/6152#issuecomment-1243718140
328332 - name : Create Android emulator
329333 run : |
330- brew install intel-haxm
331334 # Install AVD files
332335 echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-'$MATRIX_E_SDK';default;x86_64'
333336 echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --licenses
@@ -366,6 +369,7 @@ jobs:
366369 run : |
367370 echo "Starting emulator and waiting for boot to complete...."
368371 ls -la $ANDROID_HOME/emulator
372+ $ANDROID_HOME/tools/emulator --accel-check # check for hardware acceleration
369373 nohup $ANDROID_HOME/tools/emulator -avd $MATRIX_AVD -gpu host -no-audio -no-boot-anim -camera-back none -camera-front none -qemu -m 2048 2>&1 &
370374 $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do echo "wait..."; sleep 1; done; input keyevent 82'
371375 echo "Emulator has finished booting"
You can’t perform that action at this time.
0 commit comments