Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md and workflow (#2) #3

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----
Expand Down