Skip to content

Commit 40601f0

Browse files
committed
In-progress check for archery
1 parent b4231bd commit 40601f0

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/cpp_extra.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,24 @@ jobs:
414414
export ARROW_CMAKE_ARGS="-DODBC_INCLUDE_DIR=$ODBC_INCLUDE_DIR"
415415
export CXXFLAGS="$CXXFLAGS -I$ODBC_INCLUDE_DIR"
416416
ci/scripts/cpp_build.sh $(pwd) $(pwd)/build
417+
- name: Setup Python
418+
uses: actions/setup-python@v6
419+
with:
420+
python-version: 3
421+
- name: Setup Archery
422+
run: python3 -m pip install -e dev/archery
417423
- name: Check ODBC Dependency
418424
run: |
419-
# ODBC dependency should not include Arrow or third party libraries
420-
! otool -L $(pwd)/build/cpp/debug/libarrow_flight_sql_odbc.dylib | grep -Ei 'arrow_flight_sql\.|arrow_flight\.|arrow_compute|boost|iodbc|grpc'
425+
# ODBC dependency should not include other Arrow or third party libraries
426+
archery linking check-dependencies \
427+
--allow CoreFoundation \
428+
--allow libSystem \
429+
--allow libarrow_flight_sql_odbc \
430+
--allow libc++ \
431+
--allow libiconv \
432+
--allow libresolv \
433+
--allow libz \
434+
"$(pwd)/build/cpp/debug/libarrow_flight_sql_odbc.dylib"
421435
- name: Register Flight SQL ODBC Driver
422436
run: |
423437
sudo cpp/src/arrow/flight/sql/odbc/install/mac/install_odbc.sh $(pwd)/build/cpp/debug/libarrow_flight_sql_odbc.dylib

0 commit comments

Comments
 (0)