diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 6196a34d..914fdd39 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -37,7 +37,7 @@ jobs: target: google_apis arch: x86 profile: Nexus 6 - emulator-options: -no-window -no-snapshot -noaudio -no-boot-anim -camera-back none + emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none disable-animations: true script: | ./gradlew help diff --git a/README.md b/README.md index a30b370f..eaa1c8b1 100644 --- a/README.md +++ b/README.md @@ -77,8 +77,8 @@ jobs: | `target` | Optional | `default` | Target of the system image - `default` or `google_apis`. | | `arch` | Optional | `x86` | CPU architecture of the system image - `x86` or `x86_64`. | | `profile` | Optional | N/A | Hardware profile used for creating the AVD - e.g. `Nexus 6`. For a list of all profiles available, run `$ANDROID_HOME/tools/bin/avdmanager list` and refer to the results under "Available Android Virtual Devices". | -| `emulator-options` | Optional | See below | Command-line options used when launching the emulator (replacing all default options) - e.g. `-no-snapshot -camera-back emulated`. | +| `emulator-options` | Optional | See below | Command-line options used when launching the emulator (replacing all default options) - e.g. `-no-window -no-snapshot -camera-back emulated`. | | `disable-animations` | Optional | `true` | Whether to disable animations - `true` or `false`. | | `script` | Required | N/A | Custom script to run - e.g. to run Android instrumented tests on the emulator: `./gradlew connectedCheck` | -Default `emulator-options`: `-no-window -no-snapshot -noaudio -no-boot-anim`. +Default `emulator-options`: `-no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim`. diff --git a/action.yml b/action.yml index b5f349e2..eed5a991 100644 --- a/action.yml +++ b/action.yml @@ -17,8 +17,8 @@ inputs: profile: description: 'Hardware profile used for creating the AVD - e.g. `Nexus 6`.' emulator-options: - description: 'command-line options used when launching the emulator - e.g. `-no-snapshot -camera-back emulated`.' - default: '-no-window -no-snapshot -noaudio -no-boot-anim' + 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'