From 6f82203e43f32a36812c217edca075e181fe27b8 Mon Sep 17 00:00:00 2001 From: Jerin Philip Date: Thu, 9 Jun 2022 16:48:05 +0000 Subject: [PATCH] Add workflow and successful build ssplit-cpp modified to get cross compiled android on GitHub CI working. --- .github/workflows/arm.yml | 7 ++++--- 3rd_party/ssplit-cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/arm.yml b/.github/workflows/arm.yml index 0960a86..2ee1454 100644 --- a/.github/workflows/arm.yml +++ b/.github/workflows/arm.yml @@ -68,14 +68,14 @@ jobs: ccache -s # Print current cache stats ccache -z # Zero cache entry - - name: Generate buildfiles for marian on android via cmake + - name: Generate buildfiles for bergamot-translator on android via cmake run: |- mkdir -p build cd build NDK=${{ env.ndk }} ABI=${{ env.abi }} MINSDK_VERSION=${{ env.minsdk_version }} - ANDROID_PLATFORM=${{ env.android_platform }} + ANDROID_PLATFORM=android-${{ env.android_platform }} OTHER_ANDROID_ARGS=( -DANDROID_ARM_NEON=TRUE ) @@ -88,6 +88,7 @@ jobs: -DTHREADS_PREFER_PTHREAD_FLAG=ON -DBUILD_ARCH=armv8-a # -DCOMPILE_WITHOUT_EXCEPTIONS=on # Apparently this can reduce the binary size, let's see. + -DSSPLIT_USE_INTERNAL_PCRE2=ON ) # Additionally list variables finally configured. cmake -L \ @@ -104,7 +105,7 @@ jobs: .. - - name : Build marian for android + - name : Build bergamot-translator for android working-directory: build run: |- make -j2 diff --git a/3rd_party/ssplit-cpp b/3rd_party/ssplit-cpp index 49fde6d..8bc2f35 160000 --- a/3rd_party/ssplit-cpp +++ b/3rd_party/ssplit-cpp @@ -1 +1 @@ -Subproject commit 49fde6df7ee9199aedb9571be800448192e3515c +Subproject commit 8bc2f35b64f1012b8c31087610ab42f67aa70154