This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 2594c262d ci: fix the clang-tidy build (#4713)
2594c262d is described below
commit 2594c262dc80bd3f7a351cfeaf1a49866d2528c7
Author: David Li <[email protected]>
AuthorDate: Tue Aug 25 07:16:09 2026 +0900
ci: fix the clang-tidy build (#4713)
---
.github/workflows/native-unix.yml | 4 ++++
ci/scripts/cpp_clang_tidy.sh | 2 ++
2 files changed, 6 insertions(+)
diff --git a/.github/workflows/native-unix.yml
b/.github/workflows/native-unix.yml
index ed8206775..901b6703b 100644
--- a/.github/workflows/native-unix.yml
+++ b/.github/workflows/native-unix.yml
@@ -309,6 +309,10 @@ jobs:
- name: clang-tidy
run: |
+ # conda-forge changed compilers to inject includes internally
+ # instead of doing things like setting CXXARGS, so now we need to
+ # explicitly tell clang-tidy the include path
+ export
ADBC_CLANG_TIDY_ARGS="-extra-arg=-isystem${CONDA_PREFIX}/include"
./ci/scripts/cpp_clang_tidy.sh "$(pwd)" "$(pwd)/build"
# ------------------------------------------------------------
diff --git a/ci/scripts/cpp_clang_tidy.sh b/ci/scripts/cpp_clang_tidy.sh
index 370f1ed49..9631679c4 100755
--- a/ci/scripts/cpp_clang_tidy.sh
+++ b/ci/scripts/cpp_clang_tidy.sh
@@ -31,6 +31,7 @@ set -e
: ${ADBC_USE_UBSAN:=ON}
: ${ADBC_CMAKE_ARGS:=""}
+: ${ADBC_CLANG_TIDY_ARGS:=""}
: ${CMAKE_BUILD_TYPE:=Debug}
build_subproject() {
@@ -63,6 +64,7 @@ build_subproject() {
-DCMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}"
run-clang-tidy \
+ ${ADBC_CLANG_TIDY_ARGS} \
-extra-arg=-Wno-unknown-warning-option \
-extra-arg=-Wno-unused-command-line-argument \
-j $(nproc) \