-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.19 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
name: Android
on:
push:
branches: [ "master" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
ZFCI_TOKEN: ${{secrets.ZFCI_TOKEN}}
ZF_ANDROID_ABI: arm64-v8a
ZF_PROJ_PATH: ZFLoader/zfproj
ZF_PROJ_NAME: ZFLoader
steps:
- uses: actions/checkout@v3
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Setup Android NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: r21e
- name: ZFSetup
run: |
chmod +x ./zfsetup.sh
./zfsetup.sh
- name: ZF build zfproj
run: |
chmod +x ../ZFFramework/tools/buildapp/buildapp_Android.sh
../ZFFramework/tools/buildapp/buildapp_Android.sh "${ZF_PROJ_NAME}" "${ZF_PROJ_PATH}"
- name: ZF upload archive
run: |
chmod +x ../ZFFramework/master/ZF_CI/upload_app.sh
../ZFFramework/master/ZF_CI/upload_app.sh "${ZF_PROJ_PATH}/../../_tmp/Android/${ZF_PROJ_NAME}/app/${ZF_PROJ_NAME}.apk" "${ZF_PROJ_NAME}.apk"