mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-08-31 17:49:33 +00:00
73 lines
3.5 KiB
YAML
73 lines
3.5 KiB
YAML
name: 'Android Emulator Runner'
|
|
description: 'Installs, configures and starts an Android Emulator directly on hardware-accelerated runners.'
|
|
author: 'Reactive Circus'
|
|
branding:
|
|
icon: 'smartphone'
|
|
color: 'green'
|
|
inputs:
|
|
api-level:
|
|
description: 'API level of the platform and system image - e.g. 23 for Android Marshmallow, 29 for Android 10'
|
|
required: true
|
|
target:
|
|
description: 'target of the system image - default, google_apis, google_apis_playstore, aosp_atd, google_atd, android-wear, android-wear-cn, android-tv or google-tv'
|
|
default: 'default'
|
|
arch:
|
|
description: 'CPU architecture of the system image - x86, x86_64 or arm64-v8a'
|
|
default: 'x86'
|
|
profile:
|
|
description: 'hardware profile used for creating the AVD - e.g. `Nexus 6`'
|
|
cores:
|
|
description: 'the number of cores to use for the emulator'
|
|
default: 2
|
|
ram-size:
|
|
description: 'size of RAM to use for this AVD, in KB or MB, denoted with K or M. - e.g. `2048M`'
|
|
heap-size:
|
|
description: 'size of heap to use for this AVD in MB. - e.g. `512M`'
|
|
sdcard-path-or-size:
|
|
description: 'path to the SD card image for this AVD or the size of a new SD card image to create for this AVD, in KB or MB, denoted with K or M. - e.g. `path/to/sdcard`, or `1000M`'
|
|
disk-size:
|
|
description: 'disk size to use for this AVD. Either in bytes or KB, MB or GB, when denoted with K, M or G'
|
|
avd-name:
|
|
description: 'custom AVD name used for creating the Android Virtual Device'
|
|
default: 'test'
|
|
force-avd-creation:
|
|
description: 'whether to force create the AVD by overwriting an existing AVD with the same name as `avd-name` - `true` or `false`'
|
|
default: 'true'
|
|
emulator-boot-timeout:
|
|
description: 'Emulator boot timeout in seconds. If it takes longer to boot, the action would fail - e.g. `300` for 5 minutes'
|
|
default: '600'
|
|
emulator-options:
|
|
description: 'command-line options used when launching the emulator - e.g. `-no-window -no-snapshot -camera-back emulated`'
|
|
default: '-no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim'
|
|
disable-animations:
|
|
description: 'whether to disable animations - true or false'
|
|
default: 'true'
|
|
disable-spellchecker:
|
|
description: 'whether to disable the Android spell checker framework, a common source of flakiness in text fields - `true` or `false`'
|
|
default: 'false'
|
|
disable-linux-hw-accel:
|
|
description: 'whether to disable hardware acceleration on Linux machines - `true` or `false` or `auto`'
|
|
default: 'auto'
|
|
enable-hw-keyboard:
|
|
description: 'whether to enable hardware keyboard - `true` or `false`.'
|
|
default: 'false'
|
|
emulator-build:
|
|
description: 'build number of a specific version of the emulator binary to use - e.g. `6061023` for emulator v29.3.0.0'
|
|
working-directory:
|
|
description: 'A custom working directory - e.g. `./android` if your root Gradle project is under the `./android` sub-directory within your repository'
|
|
ndk:
|
|
description: 'version of NDK to install - e.g. 21.0.6113669'
|
|
cmake:
|
|
description: 'version of CMake to install - e.g. 3.10.2.4988404'
|
|
channel:
|
|
description: 'Channel to download the SDK components from - `stable`, `beta`, `dev`, `canary`'
|
|
default: 'stable'
|
|
script:
|
|
description: 'custom script to run - e.g. `./gradlew connectedCheck`'
|
|
required: true
|
|
pre-emulator-launch-script:
|
|
description: 'custom script to run after creating the AVD and before launching the emulator - e.g. `./adjust-emulator-configs.sh`'
|
|
runs:
|
|
using: 'node16'
|
|
main: 'lib/main.js'
|