Skip to content

Build fix

Build fix #2248

Workflow file for this run

name: CI Android
on:
push:
pull_request:
env:
BuildDocEnabled: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
CMakeVersion: 3.10.x
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
android-platform: [24, latest]
android-abi: [armeabi-v7a, arm64-v8a]
build-shared: [ON]
steps:
- uses: actions/checkout@v2
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
with:
cmake-version: ${{ env.CMakeVersion }}
- name: Setup NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: r23c
- name: Build and Install VSG
shell: bash
run: |
cmake . -DCMAKE_TOOLCHAIN_FILE=$(dirname $(which ndk-build))/build/cmake/android.toolchain.cmake -DANDROID_ABI=${{matrix.android-abi}} -DANDROID_PLATFORM=${{matrix.android-platform}} -DBUILD_SHARED_LIBS=${{matrix.build-shared}} -DCMAKE_INSTALL_PREFIX=./install
cmake --build . --target install --config Release