From 899f0fef13db249db429a4dfa88eeeaaba240df9 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 5 Jan 2022 17:47:57 +0300 Subject: [PATCH] mdbx-ci: add Android for github. Related to https://github.com/erthink/libmdbx/issues/258. --- .github/actions/spelling/expect.txt | 2 ++ .github/workflows/android.yml | 41 +++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 06ffacfa..e99ee603 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -1069,6 +1069,7 @@ naumov nbytes ncpfs NDEBUG +ndk nelem nentries nessdb @@ -1152,6 +1153,7 @@ nthreads ntifs ntpl ntstatus +nttld nullkey nullptr numdbs diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 00000000..9565586d --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,41 @@ +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 .