diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index f6cc9f9a5d..7c94b8a1c8 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -3,11 +3,13 @@ name: Sequentia Core CI on: workflow_dispatch: push: - branches: [ master ] + branches: + - master + - dev pull_request: branches: - master - - feature/* + - dev jobs: build: @@ -22,10 +24,22 @@ jobs: sudo apt-get install ccache build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libevent-dev libboost-dev wget -O - "https://apt.llvm.org/llvm.sh" | sudo bash -s 15 sudo /usr/sbin/update-ccache-symlinks - + echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc + source ~/.bashrc + - name: Build + env: + BDB_PREFIX: '/home/runner/work/SEQ-Core-Elements/SEQ-Core-Elements/db4' + BDB_LIBS: '-L${BDB_PREFIX}/lib -ldb_cxx-4.8' + BDB_CFLAGS: '-I${BDB_PREFIX}/include' + CC: clang-15 + CXX: clang++-15 run: | - ./autogen.sh && CC=clang-15 CXX=clang++-15 ./configure --disable-bench --without-gui --without-natpmp --without-miniupnpc && make clean && make -j $(nproc) + ./autogen.sh + ./contrib/install_db4.sh . + ./configure --disable-bench --without-gui --without-natpmp --without-miniupnpc + make clean + make -j$(nproc) - name: Publish artifact - linux uses: actions/upload-artifact@v4 diff --git a/README.md b/README.md index 1acd4e0a80..335e79a999 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,37 @@ https://sequentia.io/ Sequentia is a Bitcoin sidechain dedicated to asset tokenization and decentralized exchanges. -Based on Elements Version: 23.2.1 +Current code is based on Elements Version: 23.2.1 + +Quick Ubuntu build instructions for development: +----- + +Instal build tools +```bash +sudo apt install ccache build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libevent-dev libboost-dev +``` +Install clang 15: +```bash +wget -O - "https://apt.llvm.org/llvm.sh" | sudo bash -s 15 +``` +Setup ccache: +```bash +sudo /usr/sbin/update-ccache-symlinks +echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc +source ~/.bashrc +``` +Build: +```bash +./autogen.sh +./contrib/install_db4.sh . +export CC=clang-15 CXX=clang++-15 BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" +./configure --without-gui --without-natpmp --without-miniupnpc +make -j$(nproc) +``` +To speed up the build if not necessary, disable bench and tests in configure: +```bash +./configure --without-gui --without-natpmp --without-miniupnpc --disable-bench --disable-tests +``` Modes -----