-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (51 loc) · 1.56 KB
/
build-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Sequentia Core CI
on:
workflow_dispatch:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
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
./contrib/install_db4.sh .
./configure --disable-bench --without-gui --without-natpmp --without-miniupnpc
make clean
make -j$(nproc)
- name: Run tests
run: |
echo "Running tests"
./test/functional/test_runner.py --ci -j$(nproc) --failfast
- name: Publish artifact - linux
uses: actions/upload-artifact@v4
with:
name: sequentia-linux
path: |
src/elementsd
src/elements-cli
src/elements-tx
src/elements-util
src/elements-wallet