-
Notifications
You must be signed in to change notification settings - Fork 88
41 lines (34 loc) · 965 Bytes
/
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
name: Android
on:
push:
paths-ignore:
- 'README.md'
- 'doc/**'
pull_request:
paths-ignore:
- 'README.md'
- 'doc/**'
jobs:
android:
strategy:
fail-fast: false
matrix:
image:
- r22
platform:
- android-27
- android-29
abi:
- armeabi-v7a
- arm64-v8a
build_type: [Debug, Release]
runs-on: ubuntu-latest
container:
image: bojoe/cpp-android-ndk-build-env-ubuntu:${{ matrix.image }}
options: --user root
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: cmake -H$GITHUB_WORKSPACE -B/home/developer/build -GNinja -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI=${{ matrix.abi }} -DANDROID_PLATFORM=${{ matrix.platform }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- run: cmake --build /home/developer/build