Summary: i didnt notice this broke since tests stoped running in ci #21650
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 Android Sample App | |
# This action runs on 'git push' and PRs | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: set up JDK | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Compute build cache | |
run: ./scripts/checksum-android.sh checksum-android.txt | |
- uses: actions/[email protected] | |
with: | |
path: | | |
~/.gradle/caches/modules-* | |
~/.gradle/caches/jars-* | |
~/.gradle/caches/build-cache-* | |
key: gradle-${{ hashFiles('checksum-android.txt') }} | |
- name: Build debug artifact | |
run: ./gradlew :android:assembleDebug | |
- name: Verify libraries in artifact | |
run: scripts/verify-android-libraries.sh | |
- name: Build sample apps with Gradle | |
run: ./gradlew :sample:assembleDebug :tutorial:assembleDebug | |
- name: Build remaining artifacts with Gradle | |
run: ./gradlew assembleDebug | |
- name: upload artifact | |
uses: actions/[email protected] | |
with: | |
name: sample-app.apk | |
path: android/sample/build/outputs/apk/debug/sample-debug.apk |