Skip to content

Commit ad6a6bd

Browse files
committed
Update README.md and workflow (ElementsProject#2)
1 parent 42b1a30 commit ad6a6bd

File tree

2 files changed

+49
-5
lines changed

2 files changed

+49
-5
lines changed

.github/workflows/build-dev.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ name: Sequentia Core CI
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [ master ]
6+
branches:
7+
- master
8+
- dev
79
pull_request:
810
branches:
911
- master
10-
- feature/*
12+
- dev
1113

1214
jobs:
1315
build:
@@ -22,10 +24,22 @@ jobs:
2224
sudo apt-get install ccache build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libevent-dev libboost-dev
2325
wget -O - "https://apt.llvm.org/llvm.sh" | sudo bash -s 15
2426
sudo /usr/sbin/update-ccache-symlinks
25-
27+
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
28+
source ~/.bashrc
29+
2630
- name: Build
31+
env:
32+
BDB_PREFIX: '/home/runner/work/SEQ-Core-Elements/SEQ-Core-Elements/db4'
33+
BDB_LIBS: '-L${BDB_PREFIX}/lib -ldb_cxx-4.8'
34+
BDB_CFLAGS: '-I${BDB_PREFIX}/include'
35+
CC: clang-15
36+
CXX: clang++-15
2737
run: |
28-
./autogen.sh && CC=clang-15 CXX=clang++-15 ./configure --disable-bench --without-gui --without-natpmp --without-miniupnpc && make clean && make -j $(nproc)
38+
./autogen.sh
39+
./contrib/install_db4.sh .
40+
./configure --disable-bench --without-gui --without-natpmp --without-miniupnpc
41+
make clean
42+
make -j$(nproc)
2943
3044
- name: Publish artifact - linux
3145
uses: actions/upload-artifact@v4

README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,37 @@ https://sequentia.io/
55

66
Sequentia is a Bitcoin sidechain dedicated to asset tokenization and decentralized exchanges.
77

8-
Based on Elements Version: 23.2.1
8+
Current code is based on Elements Version: 23.2.1
9+
10+
Quick Ubuntu build instructions for development:
11+
-----
12+
13+
Instal build tools
14+
```bash
15+
sudo apt install ccache build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libevent-dev libboost-dev
16+
```
17+
Install clang 15:
18+
```bash
19+
wget -O - "https://apt.llvm.org/llvm.sh" | sudo bash -s 15
20+
```
21+
Setup ccache:
22+
```bash
23+
sudo /usr/sbin/update-ccache-symlinks
24+
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
25+
source ~/.bashrc
26+
```
27+
Build:
28+
```bash
29+
./autogen.sh
30+
./contrib/install_db4.sh .
31+
export CC=clang-15 CXX=clang++-15 BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
32+
./configure --without-gui --without-natpmp --without-miniupnpc
33+
make -j$(nproc)
34+
```
35+
To speed up the build if not necessary, disable bench and tests in configure:
36+
```bash
37+
./configure --without-gui --without-natpmp --without-miniupnpc --disable-bench --disable-tests
38+
```
939

1040
Modes
1141
-----

0 commit comments

Comments
 (0)