diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a44406..6a38418 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,20 @@ jobs: - 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 + 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=OFF -DBUILD_TESTS=OFF && cmake --build build -j 16 + run: | + cd bitcoin + cmake -B build -DENABLE_WALLET=OFF -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: Generate Blocks