Skip to content

Commit

Permalink
gitlab ci
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Aug 6, 2024
1 parent 2ef14a2 commit 470403c
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .gitlab/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ build-babylon-arm64-v8a:
script:
- export ANDROID_NDK_HOME=/opt/android-ndk-r27
- export BABYLON_CPP_DIR=$(pwd)/packages/babylon_tts/src/babylon_cpp
- cd $BABYLON_CPP_DIR
- pushd $BABYLON_CPP_DIR
- mkdir build
- cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-21
- cmake --build build --config Release -- -j$(nproc)
- mkdir -p arm64-v8a/lib
- cp lib/* arm64-v8a/lib/
- popd
- mkdir arm64-v8a
- cp $BABYLON_CPP_DIR/lib/* arm64-v8a/
artifacts:
paths:
- packages/babylon_tts/src/babylon_cpp/arm64-v8a/lib/
- arm64-v8a/

build-babylon-x86_64:
stage: build-babylon
Expand All @@ -58,15 +59,16 @@ build-babylon-x86_64:
script:
- export ANDROID_NDK_HOME=/opt/android-ndk-r27
- export BABYLON_CPP_DIR=$(pwd)/packages/babylon_tts/src/babylon_cpp
- cd $BABYLON_CPP_DIR
- pushd $BABYLON_CPP_DIR
- mkdir -p build
- cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake -DANDROID_ABI=x86_64 -DANDROID_PLATFORM=android-21
- cmake --build build --config Release -- -j$(nproc)
- mkdir -p x86_64/lib
- cp lib/* x86_64/lib/
- popd
- mkdir -p x86_64
- cp $BABYLON_CPP_DIR/lib/* x86_64/
artifacts:
paths:
- packages/babylon_tts/src/babylon_cpp/x86_64/lib/
- x86_64/

build-maid:
stage: build-maid
Expand Down Expand Up @@ -97,8 +99,8 @@ build-maid:
script:
- export PUB_CACHE=$(pwd)/.pub-cache
- export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
- cp packages/babylon_tts/src/babylon_cpp/arm64-v8a/lib/* ./packages/babylon_tts/android/app/src/main/jniLibs/arm64-v8a/
- cp packages/babylon_tts/src/babylon_cpp/x86_64/lib/* ./packages/babylon_tts/android/app/src/main/jniLibs/x86_64/
- cp arm64-v8a/* ./packages/babylon_tts/android/app/src/main/jniLibs/arm64-v8a/
- cp x86_64/* ./packages/babylon_tts/android/app/src/main/jniLibs/x86_64/
- ./packages/flutter/bin/flutter config --no-analytics
- ./packages/flutter/bin/flutter packages pub get
- echo "$KEYSTORE" | base64 --decode > ./android/app/key.jks
Expand Down

0 comments on commit 470403c

Please sign in to comment.