Releases: premex-ab/setup-android-cli
Releases · premex-ab/setup-android-cli
v1.0.2
What's Changed
- Bump softprops/action-gh-release from 2 to 3 by @dependabot[bot] in #7
- Export ANDROID_SDK_ROOT alongside ANDROID_HOME by @warting in #8
Full Changelog: v1.0.1...v1.0.2
v1.0.1
v1.0.0
Initial release of premex-ab/setup-android-cli — a composite GitHub Action that installs Google's agent-first android CLI, sets up the Android SDK, and caches between runs. Drop-in replacement for android-actions/setup-android with a simpler, faster setup.
Quick start
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- uses: premex-ab/setup-android-cli@v1
with:
packages: |
platforms/android-34
build-tools/34.0.0
platform-tools
- run: ./gradlew --no-daemon assembleDebugWhat's in it
- Composite action (pure YAML + shell) — no Node build step, no
dist/to maintain. - Always installs from
latest/— no version input, no cmdline-tools build number to track. - Cross-platform:
ubuntu-latest,ubuntu-22.04,macos-latest,macos-14; self-hosted Linux x86_64 and macOS arm64 supported via$RUNNER_TOOL_CACHE(no sudo needed). - Caching built-in:
~/.android/bin(CLI resources) +$ANDROID_HOME(SDK), keyed by OS, arch, and the hash of**/libs.versions.toml/**/build.gradle*/**/settings.gradle*. - Problem matchers registered for Gradle, Kotlin, and Android Lint — build errors show inline in the GitHub UI.
- Telemetry off by default (
--no-metricsflag passed automatically). - Job summary with CLI version, SDK path, cache status.
Inputs
| Input | Default | Purpose |
|---|---|---|
packages |
'' |
SDK packages to install (space/newline separated, slash syntax). |
sdk-path |
platform default | Override SDK install location. |
cache |
'true' |
Cache CLI + SDK between runs. |
cache-key |
'' |
Extra input appended to cache key. |
no-metrics |
'true' |
Pass --no-metrics on CLI calls. |
install-url-base |
Google redirector | Override for mirrors / air-gap. |
Outputs
| Output | Description |
|---|---|
sdk-path |
Absolute path to the installed SDK. |
cli-version |
Version string from android --version. |
cache-hit |
Whether the cache was restored. |
Migrating from android-actions/setup-android
- name: Setup Android SDK
- uses: android-actions/setup-android@v3
- with:
- packages: 'tools platform-tools'
+ uses: premex-ab/setup-android-cli@v1
+ with:
+ packages: platform-tools- No
cmdline-tools-versioninput (always current release). - No
accept-android-sdk-licensesinput (auto-accepted). - Package names use slashes:
platforms/android-34not"platforms;android-34". toolspackage doesn't exist in the new CLI; drop it.
Full docs and more examples in the README.