This is an automated email from the ASF dual-hosted git repository. Xuanwo pushed a commit to branch xuanwo/fix-php-bindings-clang21 in repository https://gitbox.apache.org/repos/asf/opendal.git
commit 082c9c52441d9d130001ea063dc572932171eb4e Author: Xuanwo <[email protected]> AuthorDate: Sat Nov 21 17:16:03 2026 +0100 ci(bindings/php): pair Clang and libclang for bindgen --- .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"
