-
Notifications
You must be signed in to change notification settings - Fork 955
36 lines (33 loc) · 1.13 KB
/
android-sample.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build Android Sample App
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Compute build cache
run: ./scripts/checksum-android.sh checksum-android.txt
- uses: actions/cache@v2
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/upload-artifact@v1
with:
name: sample-app.apk
path: android/sample/build/outputs/apk/debug/sample-debug.apk