Skip to content

Commit

Permalink
Single headless emulator - 48
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanx022 committed May 12, 2024
1 parent a5ebadb commit d59eb72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/kaan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ jobs:
sudo apt-get install -y openjdk-17-jdk
wget https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip
unzip commandlinetools-linux-6609375_latest.zip -d cmdline-tools
export PATH=$PATH:$(pwd)/cmdline-tools/tools/bin
yes | sdkmanager --licenses
sdkmanager "platform-tools" "platforms;android-30" "system-images;android-30;google_apis;x86_64"
export ANDROID_HOME=$(pwd)/cmdline-tools
echo "ANDROID_HOME=$PWD/cmdline-tools" >> $GITHUB_ENV
echo "$PWD/cmdline-tools/tools/bin" >> $GITHUB_PATH
yes | cmdline-tools/tools/bin/sdkmanager --licenses
cmdline-tools/tools/bin/sdkmanager "platform-tools" "platforms;android-30" "system-images;android-30;google_apis;x86_64"
- name: Start Emulators and Poll for Readiness
run: |
for i in {1..4}
do
echo "no" | avdmanager create avd -n "testAVD$i" -k "system-images;android-30;google_apis;x86_64" --force
echo "no" | cmdline-tools/tools/bin/avdmanager create avd -n "testAVD$i" -k "system-images;android-30;google_apis;x86_64" --force
emulator -avd "testAVD$i" -no-audio -no-window -no-boot-anim &
done
# Wait for devices to get connected
Expand Down

0 comments on commit d59eb72

Please sign in to comment.