File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -210,6 +210,23 @@ jobs:
210210 ELECTRS_EXEC : " /home/runner/.cargo-install/electrs/bin/electrs"
211211 steps :
212212 - uses : dtolnay/rust-toolchain@stable
213+ - name : Install LLVM and Clang
214+ run : |
215+ sudo apt-get update -y
216+ sudo apt-get install -y clang libclang-dev llvm-dev
217+
218+ llvm_config="$(command -v llvm-config || true)"
219+ if [[ -z "$llvm_config" ]]; then
220+ llvm_config="$(command -v llvm-config-18 || true)"
221+ fi
222+
223+ if [[ -z "$llvm_config" ]]; then
224+ echo "llvm-config not found after installing LLVM packages" >&2
225+ exit 1
226+ fi
227+
228+ echo "LLVM_CONFIG_PATH=$llvm_config" >> "$GITHUB_ENV"
229+ echo "LIBCLANG_PATH=$($llvm_config --libdir)" >> "$GITHUB_ENV"
213230 - name : Install electrs
214231 # Automatically cache installed binaries to avoid compiling them each run
215232 uses : baptiste0928/cargo-install@v2
@@ -219,4 +236,4 @@ jobs:
219236 - name : Checkout Crate
220237 uses : actions/checkout@v3
221238 - uses : Swatinem/rust-cache@v2
222- - run : cargo test --features 'bitcoind_25_2'
239+ - run : cd electrsd && cargo test --features 'bitcoind_25_2'
You can’t perform that action at this time.
0 commit comments