-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.52 KB
/
android.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Android CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Setup Gradle Dependencies Cache
uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
- name: Setup Gradle Wrapper Cache
uses: actions/[email protected]
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cleaning Gradle
run: ./gradlew clean
- name: Build with Gradle
run: ./gradlew build
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: apk-debug # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: app/build/outputs/apk/debug
- name: Upload a Build Lint
uses: actions/[email protected]
with:
# Artifact name
name: lint-debug # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: app/build/reports