-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.15 KB
/
dev.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
name: Android CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
JAVA_VERSION: '21'
ANDROID_API_LEVEL: 34
ANDROID_BUILD_TOOLS_VERSION: 34.0.0
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-
- name: Build app
run: ./gradlew assembleDebug
- name: Rename apk
run: mv app/build/outputs/apk/debug/app-universal-debug.apk hviewer-debug.apk
- name: Upload APK artifact
uses: actions/upload-artifact@v4
with:
name: app
path: hviewer-debug.apk