Skip to content

Commit

Permalink
Attempt to fix the JNI library output directories in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jduo committed Jan 12, 2024
1 parent b1da94f commit 28a4068
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ci/scripts/java_jni_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ arrow_install_dir=${2}
build_dir=${3}/java_jni
# The directory where the final binaries will be stored when scripts finish
dist_dir=${4}
normalized_arch=$(arch)
case ${normalized_arch} in
aarch64)
normalized_arch=aarch_64
;;
i386)
normalized_arch=x86_64
;;
arm64)
normalized_arch=aarch_64
;;
esac

prefix_dir="${build_dir}/java-jni"

Expand Down Expand Up @@ -56,7 +68,7 @@ cmake \
-DBUILD_TESTING=${ARROW_JAVA_BUILD_TESTS} \
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
-DCMAKE_PREFIX_PATH=${arrow_install_dir} \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_ARCH_DIR=${normalized_arch} \
-DCMAKE_INSTALL_PREFIX=${prefix_dir} \
-DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD:-OFF} \
-DProtobuf_USE_STATIC_LIBS=ON \
Expand Down

0 comments on commit 28a4068

Please sign in to comment.