forked from haven-protocol-org/haven-web-core
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·78 lines (75 loc) · 2.56 KB
/
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
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: continuous-integration/gh-actions/cli
on: [push, pull_request]
jobs:
build-web:
env:
ZMQ_VERSION: v4.3.1
CPPZMQ_VERSION: v4.3.0
CFLAGS: -fPIC
CXXFLAGS: -fPIC
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: remove bundled boost
run: sudo rm -rf /usr/local/share/boost
- name: set apt conf
run: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
- name: Install emsdk
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git pull
./emsdk install 3.1.10
./emsdk activate 3.1.10
- name: Install Haven dependencies
run: |
sudo apt update
sudo apt-get --no-install-recommends --yes install python3 build-essential cmake pkg-config libboost-all-dev libssl-dev libunbound-dev libsodium-dev liblzma-dev libreadline6-dev libldns-dev libexpat1-dev doxygen graphviz libpgm-dev libudev-dev
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
- name: Install libzmq
run: |
git clone https://github.com/zeromq/libzmq.git -b ${ZMQ_VERSION}
cd libzmq
./autogen.sh
./configure
make -j3
sudo make install
sudo ldconfig
- name: Install cppzmq
run: |
git clone https://github.com/zeromq/cppzmq.git -b ${CPPZMQ_VERSION}
cd cppzmq
sudo mv *.hpp /usr/local/include
- name: Install expat
run: |
wget https://github.com/libexpat/libexpat/releases/download/R_2_4_8/expat-2.4.8.tar.bz2
tar -xf expat-2.4.8.tar.bz2
cd expat-2.4.8
./configure --enable-static --disable-shared
make
sudo make install
- name: Install unbound
run: |
cd ~/
wget https://www.nlnetlabs.nl/downloads/unbound/unbound-1.17.0.tar.gz
tar xzf unbound-1.17.0.tar.gz
cd unbound-1.17.0
./configure --with-libexpat=/usr --with-ssl=/usr
make
sudo make install
- name: build haven web libs
run: |
export EMSCRIPTEN=$PWD/emsdk/upstream/emscripten
source ./emsdk/emsdk_env.sh
./bin/build_ci.sh
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: libs
path: dist/*