Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/build_electrs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,29 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-15]
os: [ubuntu-22.04, macos-14]
env:
ELECTRS_COMMIT: "a33e97e1a1fc63fa9c20a116bb92579bbf43b254"
ELECTRS_COMMIT: "027e38d3ebc2f85b28ae76f8f3448438ee4fc7b1"
RUST_VERSION: "1.75.0"

steps:
- name: Check out Electrs
uses: actions/checkout@master
with:
repository: Blockstream/electrs
ref: ${{ env.ELECTRS_COMMIT }}
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --release
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_VERSION }}
- name: Install LLVM (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y llvm-dev libclang-dev clang
- name: Set up build environment (macOS)
if: runner.os == 'macOS'
run: |
echo "LIBCLANG_PATH=$(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/lib" >> $GITHUB_ENV
echo "BINDGEN_EXTRA_CLANG_ARGS=-isysroot $(xcrun --show-sdk-path)" >> $GITHUB_ENV
- run: cargo build --release --locked --features liquid
- name: downcase runner.os
run: echo ${{ runner.os }} | tr '[:upper:]' '[:lower:]' | echo RUNNER_OS_LOWER=$(</dev/stdin) >>${GITHUB_ENV}
- name: Upload libs
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ jobs:
ELECTRS_EXEC: "/home/runner/.cargo-install/electrs/bin/electrs"
steps:
- uses: dtolnay/rust-toolchain@stable
- name: Install LLVM/Clang
run: |
sudo apt-get update
sudo apt-get install -y clang libclang-dev llvm-dev
- name: Install electrs
# Automatically cache installed binaries to avoid compiling them each run
uses: baptiste0928/cargo-install@v2
Expand Down
Loading