-
Notifications
You must be signed in to change notification settings - Fork 477
49 lines (45 loc) · 1.46 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
name: Android CI
on:
push:
branches: [ "master", "android_ci" ]
pull_request:
branches: [ "master", "android_ci" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nttld/[email protected]
id: setup-ndk
with:
ndk-version: r26d
link-to-sdk: true
add-to-path: true
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Release Without Video Module
run: ./tasks.sh --enable-cmake --release --disable-video-module --build
- name: Save build artifacts - Release Without Video Module
run: mv $(find "cgeDemo/build" -iname "*.apk" | grep release) demoRelease/cgeDemo_NoVideoRecord.apk
- name: Build Release With Video Module
run: ./tasks.sh --enable-cmake --release --enable-video-module --build
- name: Save build artifacts - Release With Video Module
run: mv $(find "cgeDemo/build" -iname "*.apk" | grep release) demoRelease/cgeDemo.apk
- name: lint
run: ./gradlew lint
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: my-artifact
path: |
demoRelease/cgeDemo_NoVideoRecord.apk
demoRelease/cgeDemo.apk
compression-level: 0
retention-days: 15
if-no-files-found: error