forked from pocketnetteam/pocketnet.core
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.32 KB
/
makecheck.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
name: make check
on:
workflow_dispatch:
pull_request:
branches: [ $default-branch, "0.20", "0.21" ]
jobs:
build:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v2
- name: apt update
run: sudo apt-get update
- name: install libdb
run: |
chmod 777 ./contrib/install_db4.sh
./contrib/install_db4.sh `pwd`
- name: install boost
run: sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev
- name: Install dependencies
run: sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3
- name: autogen
run: ./autogen.sh
- name: configure
run: |
export BDB_PREFIX='/home/runner/work/pocketnet.core/pocketnet.core/db4'
./configure --enable-tests BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
- name: make
run: make -j2
- name: make check
run: make check
- name: bench
run: |
cd src/bench
./bench_pocketcoin
cd ../..
- name: make deploy
run: make deploy
- uses: actions/upload-artifact@v2
with:
name: package
path: pocketnet*.deb