From b728334fe793cb5d14d47596cc4739c7acdf7223 Mon Sep 17 00:00:00 2001 From: Katya Sokolova Date: Sat, 4 Sep 2021 21:51:04 +0200 Subject: [PATCH 1/2] Run pipeline on Ubuntu --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 41eab5ed..bdfb5a32 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,7 +20,7 @@ trigger: - master pool: - vmImage: 'macos-latest' + vmImage: 'ubuntu-latest' jobs: - ${{ each value in parameters.AndroidAPIs }}: From 8b196442b2197205f478489ba9dec7d8ef6176aa Mon Sep 17 00:00:00 2001 From: greenEkatherine Date: Tue, 7 Sep 2021 16:27:50 +0200 Subject: [PATCH 2/2] 78: increase RAM with parameter instead od editing config --- azure-pipelines.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bdfb5a32..3c49324b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -38,15 +38,7 @@ jobs: $ANDROID_HOME/emulator/emulator -list-avds echo "Starting emulator" - # increase memory size to 2048M to avoid error "System UI is not responding" - # in the regex \1 means "hw.ramSize=", so we replace number that is placed after "hw.ramSize=" to 2048M. - # More details https://stackoverflow.com/a/4609965/3914914 - sed -i 's/^\(hw.ramSize=\).*$/\12048/' ~/.android/avd/xamarin_android_emulator.avd/config.ini - # solution from https://stackoverflow.com/a/16402304 to fix error "System UI is not responding" - sed -i 's/^\(hw.mainKeys=\).*$/\1yes/' ~/.android/avd/xamarin_android_emulator.avd/config.ini - # solution from https://stackoverflow.com/questions/9322540/how-to-change-the-android-emulator-ram-size-from-the-command-line - sed -i 's/^\(vm.heapSize=\).*$/\1256/' ~/.android/avd/xamarin_android_emulator.avd/config.ini - nohup $ANDROID_HOME/emulator/emulator -avd xamarin_android_emulator -gpu swiftshader_indirect -no-window -skin 1080x1920 -no-snapshot -no-audio -no-boot-anim -accel auto -qemu > /dev/null 2>&1 & + nohup $ANDROID_HOME/emulator/emulator -avd xamarin_android_emulator -memory 2048 -gpu swiftshader_indirect -no-window -skin 1080x1920 -no-snapshot -no-audio -no-boot-anim -accel auto -qemu > /dev/null 2>&1 & $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82' $ANDROID_HOME/platform-tools/adb devices