You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/manually.yml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ on:
10
10
description: 'API level of the platform and system image'
11
11
required: true
12
12
default: '34'
13
+
sdk-extension:
14
+
description: 'SDK extension of a given api level'
13
15
target:
14
16
description: 'target of the system image - default, google_apis, google_apis_playstore, aosp_atd, google_atd, android-wear, android-wear-cn, android-tv, google-tv, andrdoid-automotive, android-automotive-playstore or android-desktop'
Copy file name to clipboardExpand all lines: README.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,31 @@ jobs:
119
119
script: ./gradlew connectedCheck
120
120
```
121
121
122
+
If you need a specific [SDKExtension](https://developer.android.com/guide/sdk-extensions)
123
+
124
+
```yml
125
+
jobs:
126
+
test:
127
+
runs-on: ubuntu-latest
128
+
steps:
129
+
- name: checkout
130
+
uses: actions/checkout@v4
131
+
132
+
- name: Enable KVM
133
+
run: |
134
+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
135
+
sudo udevadm control --reload-rules
136
+
sudo udevadm trigger --name-match=kvm
137
+
138
+
- name: run tests
139
+
uses: reactivecircus/android-emulator-runner@v2
140
+
with:
141
+
api-level: 34
142
+
sdk-extension: 9
143
+
target: android-automotive
144
+
script: ./gradlew connectedCheck
145
+
```
146
+
122
147
We can significantly reduce emulator startup time by setting up AVD snapshot caching:
123
148
124
149
1. add a `gradle/actions/setup-gradle@v4` step for caching Gradle, more details see [#229](https://github.com/ReactiveCircus/android-emulator-runner/issues/229)
| `api-level` | Required | N/A | API level of the platform system image - e.g. 23 for Android Marshmallow, 29 for Android 10. **Minimum API level supported is 15**. |
208
+
| `sdk-extension` | Optional | N/A | SDK extension of a given api level - e.g. 9 for Android API 34 it will translate to 34-ext9. Check https://developer.android.com/guide/sdk-extensions for more details. `-ext` should not be part of the input, **the input should be an integer**. |
183
209
| `target` | Optional | `default` | Target of the system image - `default`, `google_apis`, `playstore`, `android-wear`, `android-wear-cn`, `android-tv`, `google-tv`, `aosp_atd`, `google_atd`, `andrdoid-automotive`, `android-automotive-playstore` or `android-desktop`. Note that `aosp_atd` and `google_atd` currently require the following: `api-level: 30`, `arch: x86` or `arch: arm64-v8` and `channel: canary`. |
184
210
| `arch` | Optional | `x86` | CPU architecture of the system image - `x86`, `x86_64` or `arm64-v8a`. Note that `x86_64` image is only available for API 21+. `arm64-v8a` images require Android 4.2+ and are limited to fewer API levels (e.g. 30). |
185
211
| `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 device`. |
@@ -243,5 +269,6 @@ These are some of the open-source projects using (or used) **Android Emulator Ru
Copy file name to clipboardExpand all lines: action.yml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@ inputs:
8
8
api-level:
9
9
description: 'API level of the platform and system image - e.g. 23 for Android Marshmallow, 29 for Android 10'
10
10
required: true
11
+
sdk-extension:
12
+
description: 'SDK extension of a given api level - e.g. 9 for Android API 34 it will translate to 34-ext9. Check https://developer.android.com/guide/sdk-extensions for more details. `-ext` should not be part of the input, the input should be an integer.'
13
+
required: false
11
14
target:
12
15
description: 'target of the system image - default, google_apis, google_apis_playstore, aosp_atd, google_atd, android-wear, android-wear-cn, android-tv, google-tv, andrdoid-automotive, android-automotive-playstore or android-desktop'
* Installs & updates the Android SDK for the macOS platform, including SDK platform for the chosen API level, latest build tools, platform tools, Android Emulator,
47
47
* and the system image for the chosen API level, CPU arch, and target.
0 commit comments