-
-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (59 loc) · 1.77 KB
/
pull-requests.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Android Dev Build
on:
pull_request:
branches:
- main
push:
branches-ignore:
- main
jobs:
android-build:
name: Android Build for Dev
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Fetch all tags
run: git fetch --tags
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'yarn'
- name: Install node modules
run: |
yarn install --immutable --check-cache
- name: Cache Gradle Wrapper
uses: actions/cache@v4
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/android/gradle/wrapper/gradle-wrapper.properties') }}
- name: Cache Gradle Dependencies
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/android/build.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-caches-
- name: Make Gradlew executable
run: cd android && chmod +x ./gradlew
- name: Dump memory info
run: free -m
- name: Build Android Dev
run: |
cd android && ./gradlew assembleRelease --no-daemon
- name: Upload APK as artifact
uses: actions/upload-artifact@v4
with:
name: opendtu-app
if-no-files-found: error
path: |
android/app/build/outputs/apk/release/*.apk
android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle