1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-19 01:43:22 +01:00

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

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

bitcoin core now uses cmake instead of autotools.
CI test is triggered by a cron job but can now also be triggered manually.
This commit is contained in:
Fabrice Drouin 2024-09-10 16:42:11 +02:00 committed by GitHub
parent 8370fa29c0
commit d726ca19fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
name: Latest Bitcoin Core name: Latest Bitcoin Core
on: on:
workflow_dispatch: # Build can be triggered manually from github.com
schedule: schedule:
# Run at midnight on Sunday and Wednesday. # Run at midnight on Sunday and Wednesday.
- cron: '0 0 * * 0,3' - cron: '0 0 * * 0,3'
@ -21,19 +22,15 @@ jobs:
path: bitcoin path: bitcoin
- name: Install bitcoind dependencies - 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 working-directory: ./bitcoin
- name: Autogen bitcoind - name: Init and configure cmake build
run: ./autogen.sh run: cmake -B build -DWITH_ZMQ=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_BENCH=OFF
working-directory: ./bitcoin
- name: Configure bitcoind
run: ./configure --with-zmq --without-gui --disable-shared --with-pic --disable-tests --disable-bench
working-directory: ./bitcoin working-directory: ./bitcoin
- name: Build bitcoind - name: Build bitcoind
run: make -j "$(($(nproc)))" run: cmake --build build "-j $(($(nproc)))"
working-directory: ./bitcoin working-directory: ./bitcoin
- name: Checkout eclair master - name: Checkout eclair master
@ -51,5 +48,5 @@ jobs:
run: echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf run: echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf
- name: Run eclair tests - 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 working-directory: ./eclair