Skip to content

Port 3.2.1 Features, Update LiteCore to 4.0.0-28, C++ to 20 #539

Port 3.2.1 Features, Update LiteCore to 4.0.0-28, C++ to 20

Port 3.2.1 Features, Update LiteCore to 4.0.0-28, C++ to 20 #539

Workflow file for this run

name: Build and Test Android
on:
push:
branches:
- master
- dev
- 'release/*'
pull_request:
branches:
- '**'
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, MinSizeRel, etc.)
BUILD_TYPE: Debug
jobs:
build:
if: false
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Android SDK
run: |
java -version
$ANDROID_SDK_ROOT/tools/bin/sdkmanager --list
$ANDROID_SDK_ROOT/tools/bin/sdkmanager --install "ndk;27.0.12077973"
$ANDROID_SDK_ROOT/tools/bin/sdkmanager --install "cmake;3.28.1"
- name: Setup Java SDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 11
- name: Build
working-directory: ${{github.workspace}}
run: |
scripts/build_android.sh -a x86_64
- name: Prepare for Tests
working-directory: ${{github.workspace}}
run: |
cp -r build_android_out test/platforms/Android/app/libs/libcblite
- name: Tests
uses: reactivecircus/android-emulator-runner@v2
with:
# Encounter random emulator issue when using lower API (e.g. 21)
api-level: 23
arch: x86_64
working-directory: ./test/platforms/Android
script: |
adb logcat -s "CBLTests" &
./gradlew cAT -PabiFilters=x86_64
- name: Post Tests
working-directory: ${{github.workspace}}
run: |
ps ax | grep logcat | grep -v grep | awk '{print $1}' | xargs kill