File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -306,6 +306,23 @@ jobs:
306306 ELECTRS_EXEC : " /home/runner/.cargo-install/electrs/bin/electrs"
307307 steps :
308308 - uses : dtolnay/rust-toolchain@stable
309+ - name : Install LLVM and Clang
310+ run : |
311+ sudo apt-get update -y
312+ sudo apt-get install -y clang libclang-dev llvm-dev
313+
314+ llvm_config="$(command -v llvm-config || true)"
315+ if [[ -z "$llvm_config" ]]; then
316+ llvm_config="$(command -v llvm-config-18 || true)"
317+ fi
318+
319+ if [[ -z "$llvm_config" ]]; then
320+ echo "llvm-config not found after installing LLVM packages" >&2
321+ exit 1
322+ fi
323+
324+ echo "LLVM_CONFIG_PATH=$llvm_config" >> "$GITHUB_ENV"
325+ echo "LIBCLANG_PATH=$($llvm_config --libdir)" >> "$GITHUB_ENV"
309326 - name : Install electrs
310327 # Automatically cache installed binaries to avoid compiling them each run
311328 uses : baptiste0928/cargo-install@v2
@@ -315,4 +332,4 @@ jobs:
315332 - name : Checkout Crate
316333 uses : actions/checkout@v3
317334 - uses : Swatinem/rust-cache@v2
318- - run : cargo test --features 'bitcoind_25_2'
335+ - run : cd electrsd && cargo test --features 'bitcoind_25_2'
You can’t perform that action at this time.
0 commit comments