1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 03:57:50 +03:00
Signed-off-by: Anton Afanasyeu <a.afanasieff@gmail.com>
This commit is contained in:
Anton Afanasyeu
2026-05-18 22:19:39 +02:00
parent 115e0e1548
commit 0647e0b2a0
15 changed files with 502 additions and 57 deletions

32
scripts/ci-build.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/env bash
# CI entry: native codecs (all ABIs) + Gradle debug APK + unit tests.
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
export ANDROIDCAST_ROOT="$ROOT"
export ANDROIDCAST_CCACHE="${ANDROIDCAST_CCACHE:-1}"
export ANDROIDCAST_USE_DISTCC="${ANDROIDCAST_USE_DISTCC:-0}"
# shellcheck source=android-ndk.sh
source "$ROOT/scripts/android-ndk.sh"
export ANDROID_NDK_HOME="$(androidcast_find_ndk_root "$ROOT")"
export ANDROID_NDK_ROOT="$ANDROID_NDK_HOME"
if [[ -f .gitmodules ]]; then
git submodule update --init --recursive
fi
ABIS="${ANDROIDCAST_CI_ABIS:-armeabi-v7a arm64-v8a x86_64}"
echo "==> Building libvpx for: $ABIS"
rm -rf "$ROOT/build/native"
mkdir -p "$ROOT/build/native"
for abi in $ABIS; do
./scripts/build-native-codecs.sh "$abi"
done
echo "==> Gradle assembleDebug + unit tests"
./gradlew --no-daemon clean assembleDebug testDebugUnitTest
echo "==> Done: $ROOT/app/build/outputs/apk/debug/app-debug.apk"