-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (36 loc) · 1.05 KB
/
Build.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
name: Build
on: [push, pull_request]
jobs:
build_apk:
name: Generate APK
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '12'
- name: Set up JDK 12
uses: actions/setup-java@v1
with:
java-version: 12
# Cache gradle
- name: Cache Gradle and wrapper
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: cache-${{ runner.os }}-${{ matrix.jdk }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant Permission to Execute
run: chmod +x gradlew
- name: Build debug APK
run: bash ./gradlew assembleDebug --stacktrace
- name: Upload APK
uses: actions/[email protected]
with:
name: app
path: app/build/outputs/apk/debug/app-debug.apk