diff --git a/ci/scripts/java_jni_macos_build.sh b/ci/scripts/java_jni_macos_build.sh index d66c39a37c5bd..ae6e32cad73bb 100755 --- a/ci/scripts/java_jni_macos_build.sh +++ b/ci/scripts/java_jni_macos_build.sh @@ -46,6 +46,7 @@ export ARROW_ACERO export ARROW_DATASET : ${ARROW_GANDIVA:=ON} export ARROW_GANDIVA +: ${ARROW_GCS:=ON} : ${ARROW_ORC:=ON} export ARROW_ORC : ${ARROW_PARQUET:=ON} @@ -76,6 +77,7 @@ cmake \ -DARROW_DEPENDENCY_USE_SHARED=OFF \ -DARROW_GANDIVA=${ARROW_GANDIVA} \ -DARROW_GANDIVA_STATIC_LIBSTDCPP=ON \ + -DARROW_GCS=${ARROW_GCS} \ -DARROW_JSON=${ARROW_DATASET} \ -DARROW_ORC=${ARROW_ORC} \ -DARROW_PARQUET=${ARROW_PARQUET} \ @@ -85,6 +87,7 @@ cmake \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=${install_dir} \ -DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD} \ + -Dgoogle_cloud_cpp_storage_SOURCE=BUNDLED \ -DGTest_SOURCE=BUNDLED \ -DPARQUET_BUILD_EXAMPLES=OFF \ -DPARQUET_BUILD_EXECUTABLES=OFF \ diff --git a/cpp/cmake_modules/DefineOptions.cmake b/cpp/cmake_modules/DefineOptions.cmake index 6e6a74c9c78f8..49f0633253326 100644 --- a/cpp/cmake_modules/DefineOptions.cmake +++ b/cpp/cmake_modules/DefineOptions.cmake @@ -333,7 +333,10 @@ takes precedence over ccache if a storage backend is configured" ON) ARROW_WITH_UTF8PROC) define_option(ARROW_GCS - "Build Arrow with GCS support (requires the GCloud SDK for C++)" OFF) + "Build Arrow with GCS support (requires the GCloud SDK for C++)" + OFF + DEPENDS + ARROW_WITH_SNAPPY) define_option(ARROW_HDFS "Build the Arrow HDFS bridge" OFF) diff --git a/dev/tasks/java-jars/github.yml b/dev/tasks/java-jars/github.yml index 7dc53a35ef402..0769280a0c600 100644 --- a/dev/tasks/java-jars/github.yml +++ b/dev/tasks/java-jars/github.yml @@ -135,8 +135,10 @@ jobs: set -e # make brew Java available to CMake if [ "{{ arch }}" = "aarch_64" ]; then + export CURL_ROOT=$(brew --prefix curl) export JAVA_HOME=$(brew --prefix openjdk@11)/libexec/openjdk.jdk/Contents/Home fi + arrow/ci/scripts/install_gcs_testbench.sh default arrow/ci/scripts/java_jni_macos_build.sh \ $GITHUB_WORKSPACE/arrow \ $GITHUB_WORKSPACE/arrow/cpp-build \