2021-12-15 17:13:57 +01:00
|
|
|
name: Latest Bitcoin Core
|
|
|
|
|
|
|
|
on:
|
2024-09-10 16:42:11 +02:00
|
|
|
workflow_dispatch: # Build can be triggered manually from github.com
|
2021-12-15 17:13:57 +01:00
|
|
|
schedule:
|
|
|
|
# Run at midnight on Sunday and Wednesday.
|
|
|
|
- cron: '0 0 * * 0,3'
|
|
|
|
|
2022-03-25 16:13:34 +05:30
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-12-15 17:13:57 +01:00
|
|
|
jobs:
|
|
|
|
|
|
|
|
regression-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 90
|
|
|
|
steps:
|
|
|
|
- name: Checkout bitcoind master
|
2022-12-29 10:22:10 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-12-15 17:13:57 +01:00
|
|
|
with:
|
|
|
|
repository: bitcoin/bitcoin
|
|
|
|
path: bitcoin
|
|
|
|
|
|
|
|
- name: Install bitcoind dependencies
|
2024-09-10 16:42:11 +02:00
|
|
|
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
|
2021-12-15 17:13:57 +01:00
|
|
|
working-directory: ./bitcoin
|
|
|
|
|
2024-09-10 16:42:11 +02:00
|
|
|
- name: Init and configure cmake build
|
|
|
|
run: cmake -B build -DWITH_ZMQ=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_BENCH=OFF
|
2021-12-15 17:13:57 +01:00
|
|
|
working-directory: ./bitcoin
|
|
|
|
|
|
|
|
- name: Build bitcoind
|
2024-09-10 16:42:11 +02:00
|
|
|
run: cmake --build build "-j $(($(nproc)))"
|
2021-12-15 17:13:57 +01:00
|
|
|
working-directory: ./bitcoin
|
|
|
|
|
|
|
|
- name: Checkout eclair master
|
2022-12-29 10:22:10 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-12-15 17:13:57 +01:00
|
|
|
with:
|
|
|
|
path: eclair
|
|
|
|
|
2025-01-07 15:56:32 +01:00
|
|
|
- name: Set up JDK 21
|
2022-12-29 10:22:10 +01:00
|
|
|
uses: actions/setup-java@v3
|
2021-12-15 17:13:57 +01:00
|
|
|
with:
|
2025-01-07 15:56:32 +01:00
|
|
|
java-version: 21
|
2022-12-29 10:22:10 +01:00
|
|
|
distribution: 'adopt'
|
2021-12-15 17:13:57 +01:00
|
|
|
|
|
|
|
- name: Configure OS settings
|
|
|
|
run: echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf
|
|
|
|
|
|
|
|
- name: Run eclair tests
|
2025-01-07 15:56:32 +01:00
|
|
|
run: BITCOIND_DIR=$GITHUB_WORKSPACE/bitcoin/build/src ./mvnw test
|
2021-12-15 17:13:57 +01:00
|
|
|
working-directory: ./eclair
|