-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (35 loc) · 930 Bytes
/
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
41
name: Build Application
on:
workflow_dispatch:
pull_request:
branches: [ master ]
paths:
- '**/*.gradle.kts'
- 'app/src/**'
- '.github/workflows/build.yml'
push:
branches: [ master ]
paths:
- '**/*.gradle.kts'
- 'app/src/**'
- '.github/workflows/build.yml'
jobs:
build-app:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17 and Gradle cache
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Make Gradle executable
run: chmod +x gradlew
- name: Build Application with Gradle
run: ./gradlew assembleDebug
- name: Upload the app-debug.apk artifact
uses: actions/upload-artifact@v4
with:
name: app-debug
path: app/build/outputs/apk/debug/app-debug.apk