mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-08-15 08:30:46 +03:00
Add workflow and successful build
ssplit-cpp modified to get cross compiled android on GitHub CI working.
This commit is contained in:
parent
573b842211
commit
6f82203e43
7
.github/workflows/arm.yml
vendored
7
.github/workflows/arm.yml
vendored
@ -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
|
||||
|
2
3rd_party/ssplit-cpp
vendored
2
3rd_party/ssplit-cpp
vendored
@ -1 +1 @@
|
||||
Subproject commit 49fde6df7ee9199aedb9571be800448192e3515c
|
||||
Subproject commit 8bc2f35b64f1012b8c31087610ab42f67aa70154
|
Loading…
Reference in New Issue
Block a user