mirror of
https://github.com/android-actions/setup-android.git
synced 2024-11-27 12:02:03 +00:00
Android SDK setup for GitHub Actions
24b7e80ade
This changes up way too much: - Moving most (all) of the code to main.ts instead of the numerous files - Dropping the caching functionality, since it should be optional - now we will only download the android sdk tools if they are not already present, including if ANDROID_SDK_ROOT is already set |
||
---|---|---|
.github | ||
.vscode | ||
__tests__ | ||
dist | ||
src | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.prettierignore | ||
.prettierrc.json | ||
action.yml | ||
jest.config.js | ||
LICENSE | ||
matchers.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
setup-android
This action sets up the Android SDK tools by:
- Downloading the SDK commandline tools
- Accepting the SDK licenses
Usage
See action.yml
Basic
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Setup Android SDK
uses: android-actions/setup-android@v1
- name: Build SampleApplication
run: ./gradlew --no-daemon build
Thanks
Based on the project android-problem-matchers-action from @jonasb