diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85c6f36..3e8c32a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,12 +61,18 @@ jobs: # Writing to $GITHUB_ENV propagates the value to subsequent steps # inside the act_runner Docker container; the workflow-level `env:` # block is not reliably visible there. + # + # Find pattern note: Debian Bookworm installs the runtime library as + # `libclang-14.so.1` (versioned, no plain libclang.so.* symlink), + # so a strict 'libclang.so.*' pattern returns nothing. The broader + # 'libclang*.so*' matches every bindgen-compatible filename variant: + # libclang.so, libclang-14.so, libclang.so.1, libclang-14.so.1. run: | set -e - LIBCL=$(find /usr/lib -name 'libclang.so.*' -type f 2>/dev/null | head -1) - test -n "$LIBCL" || { echo "ERROR: libclang.so.* not found under /usr/lib"; exit 1; } + LIBCL=$(find /usr -name 'libclang*.so*' 2>/dev/null | head -1) + test -n "$LIBCL" || { echo "ERROR: no libclang shared lib found under /usr"; exit 1; } LIBDIR=$(dirname "$LIBCL") - echo "Resolved LIBCLANG_PATH=$LIBDIR" + echo "Resolved LIBCLANG_PATH=$LIBDIR (found $LIBCL)" echo "LIBCLANG_PATH=$LIBDIR" >> "$GITHUB_ENV" - name: Cache cargo registry + build artifacts