Rely on AGP to auto-install SDK components. #209
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [ main develop ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: build samples | |
run: | | |
export SAMPLE_CI_RESULT=0 | |
source .ci_tools/build_samples.sh | |
source .ci_tools/run_samples.sh | |
eval "[[ $SAMPLE_CI_RESULT == 0 ]]" | |
# Needs to be run last because we use the clang-format shipped with the NDK. | |
- uses: pre-commit/[email protected] | |