Skip to content

Commit

Permalink
Update README.md and workflow (#2) (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixa84 authored Mar 1, 2024
1 parent d36816d commit 9555b40
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 5 deletions.
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

0 comments on commit 9555b40

Please sign in to comment.