Skip to content

Commit a83bbab

Browse files
committed
CI: added android build
1 parent 14afdc5 commit a83bbab

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,31 @@ jobs:
8989
with:
9090
name: caveexpress
9191
path: build/caveexpress-install
92+
93+
android:
94+
runs-on: ubuntu-latest
95+
steps:
96+
- uses: actions/checkout@v4
97+
- uses: seanmiddleditch/gha-setup-ninja@master
98+
- uses: nttld/setup-ndk@v1
99+
id: setup-ndk
100+
with:
101+
local-cache: true
102+
ndk-version: r21e
103+
- uses: actions/setup-java@v4
104+
with:
105+
distribution: 'zulu'
106+
java-version: '8'
107+
- name: 'Configure Android NDK variables'
108+
shell: sh
109+
run: |
110+
# We cannot use GitHub expressions in the controller job
111+
echo "ANDROID_NDK_HOME=${{ steps.setup-ndk.outputs.ndk-path }}" >>$GITHUB_ENV
112+
113+
- name: Build
114+
run: |
115+
mkdir build
116+
cd build
117+
cmake --version
118+
cmake .. -DCMAKE_BUILD_TYPE=Release -DTOOLS=OFF -DUNITTESTS=OFF -DCMAKE_TOOLCHAIN_FILE=$DIR/../../cmake/toolchains/android-toolchain.cmake
119+
cmake --build .

0 commit comments

Comments
 (0)