Skip to content

Commit

Permalink
github-action / workaround for android/yocto
Browse files Browse the repository at this point in the history
- Android CI build's prebuilt binaries have incorrect rpaths.
 Add a symlink to workaround

- Yocto build requires meta-neural-network. Disable it until
 the script is ready.

Signed-off-by: MyungJoo Ham <[email protected]>
  • Loading branch information
myungjoo committed Jan 31, 2024
1 parent 5470912 commit 9cbb32b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,17 @@ jobs:
ls -la ./libs/arm64-v8a/
cp ./libs/arm64-v8a/libnnstreamer.so $GSTREAMER_ROOT_ANDROID/arm64/lib/gstreamer-1.0/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./libs/arm64-v8a
# Workaround for the gstreamer-android prebuild binary build glitches
result=$(readelf -d ~/android/gst_root_android/arm64/lib/libfontconfig.so | grep "/data/nnstreamer/cerbero.custom-1.12.4-ndkr12b-20190213-0900/build/dist/android_arm64/lib")
if [[ ! -z $result ]]; then
echo "Warning: the given prebuilt binaries for Android have incorrect rpaths."
sudo mkdir -p /data/nnstreamer/cerbero.custom-1.12.4-ndkr12b-20190213-0900/build/dist/android_arm64/
sudo ln -s ~/android/gst_root_android/arm64/lib /data/nnstreamer/cerbero.custom-1.12.4-ndkr12b-20190213-0900/build/dist/android_arm64/lib
fi
echo "::group::Build a test application"
LDFLAGS+="-L~/android/gst_root_android/arm64/lib" ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android-app.mk NDK_APPLICATION_MK=./Application.mk -j$(nproc)
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android-app.mk NDK_APPLICATION_MK=./Application.mk -j$(nproc)
ls -la /data/nnstreamer/cerbero.custom-1.12.4-ndkr12b-20190213-0900/build/dist/android_arm64/lib/
echo "::endgroup::"
cd ..
6 changes: 3 additions & 3 deletions .github/workflows/yocto.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Yocto build
name: Yocto build (disabled)

on:
pull_request:
branches: [ main ]
# pull_request:
# branches: [ main ]

jobs:
build:
Expand Down

0 comments on commit 9cbb32b

Please sign in to comment.