Skip to content

Commit

Permalink
migrate setup_environment.sh to CMake
Browse files Browse the repository at this point in the history
Co-authored-by: Hennadii Stepanov <[email protected]>
  • Loading branch information
brunoerg and hebasto committed Sep 4, 2024
1 parent 3322cab commit 37d520d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-bitcoind/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
ccache --zero-stats
cd test; ./setup_environment.sh --bitcoind; cd ..
ccache --show-stats --verbose
tar -czf bitcoind.tar.gz test/work/bitcoin/src/bitcoind
tar -czf bitcoind.tar.gz test/work/bitcoin/build/src/bitcoind
- uses: actions/cache/save@v4
if: github.event_name != 'pull_request' && steps.ccache-cache.outputs.cache-hit != 'true'
Expand Down
7 changes: 3 additions & 4 deletions test/setup_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,10 @@ if [[ -n ${build_bitcoind} ]]; then

# Build bitcoind. This is super slow, but it is cached so it runs fairly quickly.
pushd depends
make NO_QT=1 NO_QR=1 NO_ZMQ=1 NO_UPNP=1 NO_NATPMP=1
make NO_QT=1 NO_QR=1 NO_ZMQ=1 NO_UPNP=1 NO_NATPMP=1 NO_USDT=1
popd

# Do the build
./autogen.sh
CONFIG_SITE=$PWD/depends/x86_64-pc-linux-gnu/share/config.site ./configure --with-incompatible-bdb --with-miniupnpc=no --without-gui --disable-zmq --disable-tests --disable-bench --with-libs=no --with-utils=no
make src/bitcoind
cmake -B build --toolchain depends/x86_64-pc-linux-gnu/toolchain.cmake -DBUILD_TESTS=OFF -DBUILD_BENCH=OFF
cmake --build build --target bitcoind
fi

0 comments on commit 37d520d

Please sign in to comment.