forked from ag2s20150909/TTS
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.07 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
name: Android Build CI
on:
- push
- pull_request
env:
WARN_ON_PR: "artifact upload is disabled due to the workflow is trigged by pull request."
jobs:
build:
name: Gradle CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Clone repository
- name: Prepare Java 11
uses: actions/setup-java@v1
with:
java-version: 11
java-package: jdk+fx
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ hashFiles('**/*gradle*') }}
restore-keys: ${{ runner.os }}
- name: Build project
env:
DEBUG_KEY_PASSWORD: android
DEBUG_STORE_PASSWORD: android
DEBUG_KEY_ALIAS: androiddebugkey
run: |
if ${{ !!github.head_ref }}; then echo "::warning:: Gradle $WARN_ON_PR"; fi
gradle wrapper
bash gradlew assembleDebug
- name: Upload articact
uses: actions/upload-artifact@v2
if: ${{ !github.head_ref }}
with:
path: app/build/outputs/apk
name: Android