-
Notifications
You must be signed in to change notification settings - Fork 1
134 lines (106 loc) · 4.77 KB
/
android.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: Android
on: [push, pull_request, workflow_dispatch]
jobs:
build:
strategy:
matrix:
config: [debug, release]
runs-on: ubuntu-latest
name: Android, ${{matrix.config}}
steps:
- uses: actions/checkout@v4
- id: buildConfig
uses: actions/github-script@v6
with:
script: return "${{ matrix.config == 'debug' && 'Debug' || 'Release' }}"
result-encoding: string
- id: cmakeConfig
uses: actions/github-script@v6
with:
script: return "${{ matrix.config == 'debug' && 'Debug' || 'RelWithDebInfo' }}"
result-encoding: string
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 17
- name: Create Build Environment
working-directory: ${{github.workspace}}
run: |
cd AE-Bin
wget -O external.zip "https://getfile.dokpub.com/yandex/get/https://disk.yandex.ru/d/-rIx5geDmKASew"
unzip external.zip
rm external.zip
cd ../AE/android
chmod +x gradlew
- name: Build 'Tests' ARM-v8
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :test:buildCMake${{steps.cmakeConfig.outputs.result}}[arm64-v8a]
- name: Build 'Tests' ARM-v7
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :test:buildCMake${{steps.cmakeConfig.outputs.result}}[armeabi-v7a]
- name: Assemple 'Tests'
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :test:assemble${{steps.buildConfig.outputs.result}}
- uses: actions/upload-artifact@v4
with:
name: AsEn-android-test-${{matrix.config}}
path: ${{github.workspace}}/AE/android/test/build/outputs/apk/${{matrix.config}}/test-${{matrix.config}}.apk
- name: Cleanup 'Tests'
working-directory: ${{github.workspace}}/AE/android
run: |
rm -rf test/build
rm -rf test/.cxx
- name: Build 'RemoteGraphicsDevice' ARM-v8
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :rg-device:buildCMake${{steps.cmakeConfig.outputs.result}}[arm64-v8a]
- name: Build 'RemoteGraphicsDevice' ARM-v7
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :rg-device:buildCMake${{steps.cmakeConfig.outputs.result}}[armeabi-v7a]
- name: Assemple 'RemoteGraphicsDevice'
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :rg-device:assemble${{steps.buildConfig.outputs.result}}
- uses: actions/upload-artifact@v4
with:
name: AsEn-android-rg-device-${{matrix.config}}
path: ${{github.workspace}}/AE/android/rg-device/build/outputs/apk/${{matrix.config}}/rg-device-${{matrix.config}}.apk
- name: Cleanup 'RemoteGraphicsDevice'
working-directory: ${{github.workspace}}/AE/android
run: |
rm -rf rg-device/build
rm -rf rg-device/.cxx
- name: Build 'CICD-Client' ARM-v8
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :cicd:buildCMake${{steps.cmakeConfig.outputs.result}}[arm64-v8a]
- name: Build 'CICD-Client' ARM-v7
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :cicd:buildCMake${{steps.cmakeConfig.outputs.result}}[armeabi-v7a]
- name: Assemple 'CICD-Client'
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :cicd:assemble${{steps.buildConfig.outputs.result}}
- uses: actions/upload-artifact@v4
with:
name: AsEn-android-cicd-${{matrix.config}}
path: ${{github.workspace}}/AE/android/cicd/build/outputs/apk/${{matrix.config}}/cicd-${{matrix.config}}.apk
- name: Cleanup 'CICD-Client'
working-directory: ${{github.workspace}}/AE/android
run: |
rm -rf cicd/build
rm -rf cicd/.cxx
- name: Build 'Demo' ARM-v8
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :demo:buildCMake${{steps.cmakeConfig.outputs.result}}[arm64-v8a]
- name: Build 'Demo' ARM-v7
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :demo:buildCMake${{steps.cmakeConfig.outputs.result}}[armeabi-v7a]
- name: Assemple 'Demo'
working-directory: ${{github.workspace}}/AE/android
run: ./gradlew :demo:assemble${{steps.buildConfig.outputs.result}}
- uses: actions/upload-artifact@v4
with:
name: AsEn-android-demo-${{matrix.config}}
path: ${{github.workspace}}/AE/android/demo/build/outputs/apk/${{matrix.config}}/demo-${{matrix.config}}.apk
- name: Cleanup 'Demo'
working-directory: ${{github.workspace}}/AE/android
run: |
rm -rf demo/build
rm -rf demo/.cxx