Skip to content

Commit bb518f3

Browse files
committed
ci: fix LIBCLANG_PATH detection on Ubuntu
dpkg -L libclang-dev returns no library files because libclang-dev is a meta-package on Ubuntu 22.04. Use find over /usr/lib/llvm-*/lib instead, which works regardless of the installed LLVM version.
1 parent eaeeadb commit bb518f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
2828
- name: Set LIBCLANG_PATH
2929
run: |
30-
LIBCLANG_DIR=$(dirname "$(dpkg -L libclang-dev | grep libclang.so$ | head -1)")
30+
LIBCLANG_DIR=$(dirname "$(find /usr/lib/llvm-*/lib -name 'libclang.so' 2>/dev/null | sort -V | tail -1)")
3131
echo "LIBCLANG_PATH=$LIBCLANG_DIR" >> "$GITHUB_ENV"
3232
3333
- uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)