Skip to content

Merge branch 'master' into CameraSampler #2713

Merge branch 'master' into CameraSampler

Merge branch 'master' into CameraSampler #2713

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/[email protected]
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