forked from chips-blockchain/chips
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.59 KB
/
linux.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
name: Linux CI
on:
push:
branches:
- master
- dev
pull_request:
types: [opened, synchronize, reopened]
schedule:
- cron: '0 0 * * 1'
jobs:
linux-build:
name: Linux Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install deps (Linux)
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get -y update
sudo apt-get remove php* msodbcsql17 mysql* powershell dotn*
sudo apt-get -y update
sudo ACCEPT_EULA=Y apt-get upgrade -y
sudo apt-get install -q -y \
curl python3 libssl-dev software-properties-common autoconf \
git build-essential libtool \
libprotobuf-c-dev libgmp-dev libsqlite3-dev python zip \
jq libevent-dev pkg-config libcurl4-gnutls-dev cmake \
libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools \
libqrencode-dev libminiupnpc-dev libzmq3-dev
- name: Build (Linux)
run: |
export CHIPS_ROOT=$(pwd)
cd $CHIPS_ROOT
git clone https://github.com/chips-blockchain/chips -b master
cd chips/depends
make
cd ..
./autogen.sh
./configure --prefix=$(pwd)/depends/x86_64-pc-linux-gnu LDFLAGS="-L${CHIPS_PREFIX}/lib/" CPPFLAGS="-I${CHIPS_PREFIX}/include/" --with-gui=yes --disable-tests --disable-bench --enable-upnp-default --enable-experimental-asm --enable-static --disable-shared
make -j$(nproc)
ls -lad src/{chips-cli,chipsd} src/qt/chips-qt