From b7bb12732164eb00064f5a73fc21bc5adbb28f53 Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Fri, 1 Mar 2024 14:41:09 +0100 Subject: [PATCH 1/6] Update README.md --- README.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) 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 ----- From 8f543a4789d7f5a2e41cec115700a7880ead8ef3 Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Fri, 1 Mar 2024 14:49:10 +0100 Subject: [PATCH 2/6] Update build-dev.yml --- .github/workflows/build-dev.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index f6cc9f9a5d..64a0141d0a 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,16 @@ 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 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 . + CC=clang-15 CXX=clang++-15 BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" ./configure --disable-bench --without-gui --without-natpmp --without-miniupnpc + make clean + make -j$(nproc) - name: Publish artifact - linux uses: actions/upload-artifact@v4 From 558235a0cb268738d12739cd988da12fb4208c2c Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Fri, 1 Mar 2024 18:49:56 +0100 Subject: [PATCH 3/6] Fix build-dev.yml --- .github/workflows/build-dev.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index 64a0141d0a..2f8f082988 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -31,7 +31,8 @@ jobs: run: | ./autogen.sh ./contrib/install_db4.sh . - CC=clang-15 CXX=clang++-15 BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" ./configure --disable-bench --without-gui --without-natpmp --without-miniupnpc + export CC=clang-15 CXX=clang++-15 BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" + ./configure --disable-bench --without-gui --without-natpmp --without-miniupnpc make clean make -j$(nproc) From 9356311f4f652cf27b50e28bb9857332ca2a927d Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Fri, 1 Mar 2024 19:08:03 +0100 Subject: [PATCH 4/6] Fix build-dev.yml --- .github/workflows/build-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index 2f8f082988..549ef4f36c 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -31,7 +31,7 @@ jobs: run: | ./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" + export CC=clang-15 CXX=clang++-15 BDB_LIBS='-L${BDB_PREFIX}/lib -ldb_cxx-4.8' BDB_CFLAGS='-I${BDB_PREFIX}/include' ./configure --disable-bench --without-gui --without-natpmp --without-miniupnpc make clean make -j$(nproc) From 24a3508a2ffd50e348354c9a45f27a50b048e40d Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Fri, 1 Mar 2024 19:13:44 +0100 Subject: [PATCH 5/6] Fix build-dev.yml --- .github/workflows/build-dev.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index 549ef4f36c..9ffc57c10a 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -31,6 +31,7 @@ jobs: run: | ./autogen.sh ./contrib/install_db4.sh . + export BDB_PREFIX='/home/runner/work/SEQ-Core-Elements/SEQ-Core-Elements/db4' export CC=clang-15 CXX=clang++-15 BDB_LIBS='-L${BDB_PREFIX}/lib -ldb_cxx-4.8' BDB_CFLAGS='-I${BDB_PREFIX}/include' ./configure --disable-bench --without-gui --without-natpmp --without-miniupnpc make clean From e62ae833493cf4e04ae0ea17ee93639649fdc3ec Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Fri, 1 Mar 2024 19:38:06 +0100 Subject: [PATCH 6/6] Update build-dev.yml --- .github/workflows/build-dev.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index 9ffc57c10a..7c94b8a1c8 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -28,11 +28,15 @@ jobs: 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 ./contrib/install_db4.sh . - export BDB_PREFIX='/home/runner/work/SEQ-Core-Elements/SEQ-Core-Elements/db4' - export CC=clang-15 CXX=clang++-15 BDB_LIBS='-L${BDB_PREFIX}/lib -ldb_cxx-4.8' BDB_CFLAGS='-I${BDB_PREFIX}/include' ./configure --disable-bench --without-gui --without-natpmp --without-miniupnpc make clean make -j$(nproc)