-
-
Notifications
You must be signed in to change notification settings - Fork 158
49 lines (40 loc) · 1.28 KB
/
android_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
42
43
44
45
46
47
48
49
name: Android build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
# this job builds and uploads the apk
build_the_apk:
# there's no need to run it on forks
if: github.repository == 'spacecowboy/NotePad'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: perform the checkout
uses: actions/checkout@v3
- name: perform the validation
uses: gradle/wrapper-validation-action@v1
- name: perform the JDK setup
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: perform Gradle caching
uses: gradle/gradle-build-action@v2
- name: perform the Gradle build
run: ./gradlew build
- name: perform additional checks with our custom tasks
run: ./gradlew checkLanguages checkFastlane
# TODO output files from this step are not saved. Take a look at them
- name: perform lint checks with gradle
run: ./gradlew lint
- name: perform the APK upload
uses: actions/upload-artifact@v3
with:
name: app_debug
path: app/build/outputs/apk/debug/app-debug.apk
retention-days: 7 # we're not publishing the app: nobody needs this apk