name: Android on: pull_request: push: branches-ignore: - coverity_scan paths-ignore: - '.circleci/**' - '.github/actions/spelling/**' - 'docs/**' - 'packages**' - .cirrus.yml - .clang-format - .gitignore - .travis.yml - AUTHORS - COPYRIGHT - ChangeLog.md - LICENSE - README.md - appveyor.yml jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: fetch tags run: git fetch --unshallow --tags --prune --force - uses: nttld/setup-ndk@v1 id: setup-ndk with: ndk-version: r21e add-to-path: true - name: configure env: ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} run: cmake --version && cmake --toolchain "${{ steps.setup-ndk.outputs.ndk-path }}/build/cmake/android.toolchain.cmake" - name: build run: cmake --build .