-
Notifications
You must be signed in to change notification settings - Fork 73
27 lines (26 loc) · 994 Bytes
/
main.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
name: CI
on: [push, pull_request]
jobs:
build:
name: Build dPoW client "iguana" on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
sudo apt-get remove php* msodbcsql17 mysql*
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install build-essential pkg-config cmake libsodium-dev libc6-dev m4 g++-multilib libtool libncurses-dev zlib1g-dev libssl-dev libprotobuf-dev protobuf-compiler libgtest-dev libdb++-dev ntp ntpdate software-properties-common libevent-dev curl libcurl4-gnutls-dev clang jq -y
- name: Install nanomsg
run: |
git clone https://github.com/nanomsg/nanomsg
cd nanomsg
cmake . -DNN_TESTS=OFF -DNN_ENABLE_DOC=OFF
make -j2
sudo make install
sudo ldconfig
- name: Build dpow client "iguana"
run: cd iguana && make