-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (33 loc) · 861 Bytes
/
ci.yml
File metadata and controls
41 lines (33 loc) · 861 Bytes
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
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-cache-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle/libs.versions.toml') }}
restore-keys: gradle-cache-
- name: Prepare files
run: |
chmod +x gradlew
- name: Compile
run: ./gradlew assembleDebug
- name: Upload Result
uses: actions/upload-artifact@v4
with:
path: '*/build/outputs/apk/debug/*-debug.apk'
if-no-files-found: error