Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI test with latest bitcoin core (switch from autotools to cmake) #2906

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Changes from 1 commit
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
15 changes: 6 additions & 9 deletions .github/workflows/latest-bitcoind.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Latest Bitcoin Core

on:
workflow_dispatch:
t-bast marked this conversation as resolved.
Show resolved Hide resolved
schedule:
# Run at midnight on Sunday and Wednesday.
- cron: '0 0 * * 0,3'
Expand All @@ -21,19 +22,15 @@ jobs:
path: bitcoin

- name: Install bitcoind dependencies
run: sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libevent-dev libboost-dev libminiupnpc-dev libnatpmp-dev libzmq3-dev libsqlite3-dev systemtap-sdt-dev
run: sudo apt-get install build-essential cmake pkg-config bsdmainutils python3 libevent-dev libboost-dev libminiupnpc-dev libnatpmp-dev libzmq3-dev libsqlite3-dev systemtap-sdt-dev
working-directory: ./bitcoin

- name: Autogen bitcoind
run: ./autogen.sh
working-directory: ./bitcoin

- name: Configure bitcoind
run: ./configure --with-zmq --without-gui --disable-shared --with-pic --disable-tests --disable-bench
- name: Init and configure cmake build
run: cmake -B build -DWITH_ZMQ=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_BENCH=OFF
working-directory: ./bitcoin

- name: Build bitcoind
run: make -j "$(($(nproc)))"
run: cmake --build build "-j $(($(nproc)))"
working-directory: ./bitcoin

- name: Checkout eclair master
Expand All @@ -51,5 +48,5 @@ jobs:
run: echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf

- name: Run eclair tests
run: BITCOIND_DIR=$GITHUB_WORKSPACE/bitcoin/src mvn test
run: BITCOIND_DIR=$GITHUB_WORKSPACE/bitcoin/build/src mvn test
working-directory: ./eclair
Loading