Single headless emulator - 13 #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#name: Kaan Old - 2 | |
# | |
#on: | |
# push: | |
# branches: | |
# - "*" | |
# | |
#env: | |
# ANDROID_ARCH: arm64-v8a | |
## ANDROID_TARGET: google_apis_playstore | |
# ANDROID_TARGET: default | |
# API_LEVEL: 30 | |
# ANDROID_BUILD_TOOLS_VERSION: 30.0.3 | |
# ANDROID_SDK_PACKAGES: system-images;android-30;google_apis_playstore;arm64- v8a platforms;android-30 build-tools;30.0.3 platform-tools emulator | |
## ANDROID_SDK_PACKAGES: "system-images;android-34;google_apis_playstore;arm64-v8a platforms;android-34 build-tools;34.0.0 platform-tools emulator" | |
# EMULATOR_TIMEOUT: 350 | |
# EMULATOR_NAME: nexus | |
# | |
#jobs: | |
# kaan: | |
# timeout-minutes: 5 | |
# runs-on: macos-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Add avdmanager and sdkmanager to system PATH | |
# run: | | |
# echo "$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/${{ env.ANDROID_BUILD_TOOLS_VERSION }}" >> $GITHUB_PATH | |
# | |
# - name: Set up JDK 11 | |
# uses: actions/setup-java@v3 | |
# with: | |
# java-version: 11 | |
# distribution: 'adopt' | |
# cache: 'gradle' | |
# | |
# - name: Install Sdk | |
# run: | | |
# yes Y | sdkmanager --licenses | |
# sdkmanager --install ${ANDROID_SDK_PACKAGES} >/dev/null | |
# | |
# - name: Build emulator | |
# run: | | |
# echo "no" | avdmanager --verbose create avd --force -n $EMULATOR_NAME --abi "${ANDROID_TARGET}/${ANDROID_ARCH}" -k "system-images;android-${API_LEVEL};${ANDROID_TARGET};${ANDROID_ARCH}" | |
# | |
# - name: Launch emulator | |
# run: | | |
# chmod +x ./start_emu_headless.sh | |
# EMULATOR_TIMEOUT=$EMULATOR_TIMEOUT EMULATOR_NAME=$EMULATOR_NAME ./start_emu_headless.sh | |
# | |
# - name: Run connected tests | |
# uses: ReactiveCircus/android-emulator-runner@v2 | |
# with: | |
# api-level: 30 | |
# target: google_apis | |
# arch: x86_64 | |
# script: ./gradlew connectedCheck |