mirror of
https://github.com/ACINQ/eclair.git
synced 2025-03-13 11:35:47 +01:00
The workflow that tests eclair against bitcoin's master branch doesn't need more permissions than reading the repository's code and building it.
54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
name: Latest Bitcoin Core
|
|
|
|
on:
|
|
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@v2
|
|
with:
|
|
repository: bitcoin/bitcoin
|
|
path: bitcoin
|
|
|
|
- name: Install bitcoind dependencies
|
|
run: sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libssl-dev libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler git libsqlite3-dev ccache
|
|
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
|
|
working-directory: ./bitcoin
|
|
|
|
- name: Build bitcoind
|
|
run: make -j "$(($(nproc)))"
|
|
working-directory: ./bitcoin
|
|
|
|
- name: Checkout eclair master
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: eclair
|
|
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 11
|
|
|
|
- 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/src mvn test
|
|
working-directory: ./eclair
|