From 27a0759d85db82201dba22f1cddcfd5dbfeaec20 Mon Sep 17 00:00:00 2001 From: Afzal Najam Date: Tue, 2 Mar 2021 12:34:46 -0500 Subject: [PATCH] Change default cores to 2, add cores in workflow --- .github/workflows/workflow.yml | 1 + README.md | 2 +- action.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index a677231f..fb9535c1 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -71,6 +71,7 @@ jobs: target: ${{ matrix.target }} arch: x86 profile: Nexus 6 + cores: 2 sdcard-path-or-size: 100M avd-name: test emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none diff --git a/README.md b/README.md index 6fc82ece..7273c5a7 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ jobs: | `target` | Optional | `default` | Target of the system image - `default`, `google_apis` or `playstore`. | | `arch` | Optional | `x86` | CPU architecture of the system image - `x86` or `x86_64`. Note that `x86_64` image is only available for API 21+. | | `profile` | Optional | N/A | Hardware profile used for creating the AVD - e.g. `Nexus 6`. For a list of all profiles available, run `avdmanager list` and refer to the results under "Available Android Virtual Devices". | -| `cores` | Optional | N/A | Number of cores to use for the emulator (`hw.cpu.ncore` in config.ini). | +| `cores` | Optional | 2 | Number of cores to use for the emulator (`hw.cpu.ncore` in config.ini). | | `sdcard-path-or-size` | Optional | N/A | 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`. | | `avd-name` | Optional | `test` | Custom AVD name used for creating the Android Virtual Device. | | `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`. | diff --git a/action.yml b/action.yml index 32bed0d3..f67a96d7 100644 --- a/action.yml +++ b/action.yml @@ -18,6 +18,7 @@ inputs: 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 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`' avd-name: