Skip to content

Commit 73e3209

Browse files
committed
Fix CI: install libclang for RocksDB compilation
bindgen requires libclang to compile RocksDB C++ bindings. Added installation step with support for multiple Linux distributions.
1 parent 0b3b7ca commit 73e3209

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
- uses: actions/checkout@v4
2424
- name: Install toolchain
2525
uses: dtolnay/rust-toolchain@nightly
26+
- name: Install clang
27+
run: |
28+
apt-get update && apt-get install -y libclang-dev clang || \
29+
apk add --no-cache libgcc clang-dev || \
30+
echo "Using pre-installed clang"
31+
continue-on-error: true
2632
- name: Check format
2733
run: cargo fmt --check
2834
- name: Run clippy

0 commit comments

Comments
 (0)