forked from SkyTubeTeam/SkyTube
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.08 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
name: Android CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: "adopt"
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Run Tests
run: ./gradlew testOssDebugUnitTest
- name: Build with Gradle
run: ./gradlew assembleSnapshot
- name: Upload Artifacts - OSS version
uses: actions/upload-artifact@v2
with:
name: SkyTube-Oss.apk
path: app/build/outputs/apk/oss/snapshot/SkyTube-Oss-*.apk
- name: Upload Artifacts - Extra version
uses: actions/upload-artifact@v2
with:
name: SkyTube-Extra.apk
path: app/build/outputs/apk/extra/snapshot/SkyTube-Extra-*.apk