mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-23 14:40:34 +01:00
* Update kamon and kanela-agent Previous version was not compatible with JDK21, see https://github.com/kamon-io/kanela/issues/150. * Add and configure maven wrapper to use maven 3.9.9 This will make it easier to control which version of maven is used to build eclair, which in turns makes deterministic builds easier, as well as using recent compiler options (to target newer JDKs for example). For example, even recent versions of Github runner images use an old version of maven and there is no easy way to upgrade. * Update Dockerfile We now use multiarch (amd64/arm64) base images. * Run CI tests with JDK21 * Update doc to recommend Adoptium OpenJDK21 * Target Java 21 Eclair now targets Java 21 and will require a compatible Java Runtime Environment. It will no longer work on JRE 11 and JRE 17.
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: Latest Bitcoin Core
|
|
|
|
on:
|
|
workflow_dispatch: # Build can be triggered manually from github.com
|
|
schedule:
|
|
# Run at midnight on Sunday and Wednesday.
|
|
- cron: '0 0 * * 0,3'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
|
|
regression-tests:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 90
|
|
steps:
|
|
- name: Checkout bitcoind master
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: bitcoin/bitcoin
|
|
path: bitcoin
|
|
|
|
- name: Install bitcoind dependencies
|
|
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: 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: cmake --build build "-j $(($(nproc)))"
|
|
working-directory: ./bitcoin
|
|
|
|
- name: Checkout eclair master
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: eclair
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: 21
|
|
distribution: 'adopt'
|
|
|
|
- name: Configure OS settings
|
|
run: echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf
|
|
|
|
- name: Run eclair tests
|
|
run: BITCOIND_DIR=$GITHUB_WORKSPACE/bitcoin/build/src ./mvnw test
|
|
working-directory: ./eclair
|