Skip to content

Commit 4375cc9

Browse files
committed
Use prefix command to get path to unixodbc
1 parent 2248808 commit 4375cc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/cpp.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,12 @@ jobs:
244244
run: |
245245
echo "ARROW_FLIGHT_SQL=ON" >> $GITHUB_ENV
246246
echo "ARROW_FLIGHT_SQL_ODBC=ON" >> $GITHUB_ENV
247-
echo "ODBC_INCLUDE_DIR=/usr/local/Cellar/unixodbc/2.3.14/include" >> $GITHUB_ENV
248-
echo "ODBC_LIBRARY=/usr/local/Cellar/unixodbc/2.3.14/lib/libodbc.2.dylib" >> $GITHUB_ENV
247+
echo "ODBC_INCLUDE_DIR=$(brew --prefix unixodbc)/include" >> $GITHUB_ENV
248+
echo "ODBC_LIBRARY=$(brew --prefix unixodbc)/lib/libodbc.2.dylib" >> $GITHUB_ENV
249249
250250
# -AL- old code to use libiodbc
251-
# echo "ODBC_INCLUDE_DIR=/usr/local/Cellar/libiodbc/3.52.16/include" >> $GITHUB_ENV
252-
# echo "ODBC_LIBRARY=/usr/local/Cellar/libiodbc/3.52.16/lib/libiodbc.dylib" >> $GITHUB_ENV
251+
# echo "ODBC_INCLUDE_DIR=$(brew --prefix libiodbc)/include" >> $GITHUB_ENV
252+
# echo "ODBC_LIBRARY=$(brew --prefix libiodbc)/lib/libiodbc.dylib" >> $GITHUB_ENV
253253
# -AL- check real path of libodbc
254254
realpath /usr/local/lib/libodbc.dylib
255255
- name: Install MinIO

0 commit comments

Comments
 (0)