update to 31.x #55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Install Bitcoin Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install build-essential cmake pkgconf python3 libevent-dev libboost-dev capnproto libcapnp-dev ccache | |
| - name: ccache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/ccache | |
| key: ccache-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: ccache-${{ runner.os }}- | |
| - name: Checkout Bitcoin Core | |
| run: git clone --depth 1 --branch master https://github.com/bitcoin/bitcoin.git | |
| - name: Build Bitcoin Core | |
| run: | | |
| cd bitcoin | |
| cmake -B build -DENABLE_WALLET=ON -DBUILD_TESTS=OFF -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache | |
| cmake --build build -j $(nproc) | |
| - name: Run Bitcoin Core Daemon | |
| run: cd bitcoin && ./build/bin/bitcoin node -chain=regtest -ipcbind=unix -server -debug=ipc -daemon | |
| - name: Run Test Suite | |
| env: | |
| BITCOIN_BIN: ${{ github.workspace }}/bitcoin/build/bin/bitcoin | |
| run: cargo test |