mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-09-11 05:35:33 +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 -s # Print current cache stats
|
||||||
ccache -z # Zero cache entry
|
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: |-
|
run: |-
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
NDK=${{ env.ndk }}
|
NDK=${{ env.ndk }}
|
||||||
ABI=${{ env.abi }}
|
ABI=${{ env.abi }}
|
||||||
MINSDK_VERSION=${{ env.minsdk_version }}
|
MINSDK_VERSION=${{ env.minsdk_version }}
|
||||||
ANDROID_PLATFORM=${{ env.android_platform }}
|
ANDROID_PLATFORM=android-${{ env.android_platform }}
|
||||||
OTHER_ANDROID_ARGS=(
|
OTHER_ANDROID_ARGS=(
|
||||||
-DANDROID_ARM_NEON=TRUE
|
-DANDROID_ARM_NEON=TRUE
|
||||||
)
|
)
|
||||||
@ -88,6 +88,7 @@ jobs:
|
|||||||
-DTHREADS_PREFER_PTHREAD_FLAG=ON
|
-DTHREADS_PREFER_PTHREAD_FLAG=ON
|
||||||
-DBUILD_ARCH=armv8-a
|
-DBUILD_ARCH=armv8-a
|
||||||
# -DCOMPILE_WITHOUT_EXCEPTIONS=on # Apparently this can reduce the binary size, let's see.
|
# -DCOMPILE_WITHOUT_EXCEPTIONS=on # Apparently this can reduce the binary size, let's see.
|
||||||
|
-DSSPLIT_USE_INTERNAL_PCRE2=ON
|
||||||
)
|
)
|
||||||
# Additionally list variables finally configured.
|
# Additionally list variables finally configured.
|
||||||
cmake -L \
|
cmake -L \
|
||||||
@ -104,7 +105,7 @@ jobs:
|
|||||||
..
|
..
|
||||||
|
|
||||||
|
|
||||||
- name : Build marian for android
|
- name : Build bergamot-translator for android
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: |-
|
run: |-
|
||||||
make -j2
|
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