Skip to content

Update android.yml #2682

Update android.yml

Update android.yml #2682

Workflow file for this run

name: Android CI
on:
- pull_request
- push
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Check Snippets
run: python scripts/checksnippets.py
- name: What is home?
run: echo $HOME
- name: What is Android home?
run: echo $ANDROID_HOME
- name: What is Android SDK Root?
run: echo $ANDROID_SDK_ROOT
# - name: Install NDK
# run: echo "y" | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
# - name: Build with Gradle (Pull Request)
# run: ./build_pull_request.sh
# if: github.event_name == 'pull_request'
# - name: Build with Gradle (Push)
# run: ./gradlew clean ktlint build
# if: github.event_name != 'pull_request'