-
-
Notifications
You must be signed in to change notification settings - Fork 177
67 lines (65 loc) · 2.39 KB
/
build.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build
on:
push:
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: ./gradlew lintDebug ktlintCheck
assemble:
name: Assemble
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: ./gradlew assembleDebug
# Upload all build artifacts in separate steps. This can be shortened once https://github.com/actions/upload-artifact/pull/354 is merged.
- name: Upload artifact phone-libre-universal-debug.apk
uses: actions/upload-artifact@v3
with:
name: phone-libre-universal-debug.apk
path: ./app/phone/build/outputs/apk/libre/debug/phone-libre-universal-debug.apk
- name: Upload artifact phone-libre-arm64-v8a-debug.apk
uses: actions/upload-artifact@v3
with:
name: phone-libre-arm64-v8a-debug.apk
path: ./app/phone/build/outputs/apk/libre/debug/phone-libre-arm64-v8a-debug.apk
- name: Upload artifact phone-libre-armeabi-v7a-debug.apk
uses: actions/upload-artifact@v3
with:
name: phone-libre-armeabi-v7a-debug.apk
path: ./app/phone/build/outputs/apk/libre/debug/phone-libre-armeabi-v7a-debug.apk
- name: Upload artifact phone-libre-x86_64-debug.apk
uses: actions/upload-artifact@v3
with:
name: phone-libre-x86_64-debug.apk
path: ./app/phone/build/outputs/apk/libre/debug/phone-libre-x86_64-debug.apk
- name: Upload artifact phone-libre-x86-debug.apk
uses: actions/upload-artifact@v3
with:
name: phone-libre-x86-debug.apk
path: ./app/phone/build/outputs/apk/libre/debug/phone-libre-x86-debug.apk