This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new e60a63f6ad ci(bindings/php): pair Clang and libclang for bindgen 
(#8583)
e60a63f6ad is described below

commit e60a63f6add87c13bce20e24675f03cdfcba1b6d
Author: Xuanwo <[email protected]>
AuthorDate: Sun Nov 22 00:46:46 2026 +0800

    ci(bindings/php): pair Clang and libclang for bindgen (#8583)
---
 .github/workflows/ci_bindings_php.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.github/workflows/ci_bindings_php.yml 
b/.github/workflows/ci_bindings_php.yml
index 56ccb96c4e..2764e485ea 100644
--- a/.github/workflows/ci_bindings_php.yml
+++ b/.github/workflows/ci_bindings_php.yml
@@ -62,6 +62,16 @@ jobs:
       - name: Setup Rust toolchain
         uses: ./.github/actions/setup
 
+      - name: Use matching Clang and libclang for bindgen
+        run: |
+          # The runner ships multiple LLVM versions. Bindgen discovers Clang 
and libclang separately.
+          clang_path="$(realpath -e /usr/bin/clang)"
+          llvm_dir="$(dirname "$(dirname "$clang_path")")"
+          {
+            echo "CLANG_PATH=$clang_path"
+            echo "LIBCLANG_PATH=$llvm_dir/lib"
+          } >> "$GITHUB_ENV"
+
       # Useful for debugging
       - name: Print Clippy version
         working-directory: "bindings/php"

Reply via email to