Update LiteCore to 3.1.2-3 #264
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup Android SDK | |
run: | | |
$ANDROID_SDK_ROOT/tools/bin/sdkmanager --install "ndk;23.1.7779620" | |
$ANDROID_SDK_ROOT/tools/bin/sdkmanager --install "cmake;3.22.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 |