blob: 2307c6c73d05814b8b29591e195b211e67ea463f [file] [log] [blame]
Zhiyi Zhang3e96a0f2020-12-21 21:13:24 -08001name: build_v03
2
3on:
4 push:
5 branches: [ v0.3 ]
6 pull_request:
7 branches: [ v0.3 ]
8
9jobs:
10 build:
11
Zhiyi Zhangfe2cca72020-12-21 22:03:24 -080012 runs-on: ubuntu-18.04
Zhiyi Zhang3e96a0f2020-12-21 21:13:24 -080013
14 steps:
15 - uses: actions/checkout@v2
Zhiyi Zhangf67db7b2020-12-21 21:25:26 -080016 - name: install dependencies for ndncxx
Zhiyi Zhangfe2cca72020-12-21 22:03:24 -080017 run: |
18 sudo apt-get install pkg-config libssl-dev libsqlite3-dev
19 wget https://github.com/actions/boost-versions/releases/download/1.72.0-20200608.4/boost-1.72.0-linux-18.04-gcc-x64.tar.gz
20 tar -zxvf boost-1.72.0-linux-18.04-gcc-x64.tar.gz
21 cd boost-1.72.0-linux-18.04-gcc-x64
22 ./bootstrap.sh
23 sudo ./b2 install
24 cd ..
Zhiyi Zhang49513662020-12-21 21:21:13 -080025 - name: prepare ndncxx
26 run: |
27 git clone https://github.com/named-data/ndn-cxx.git
28 cd ndn-cxx
29 ./waf configure
30 ./waf
Zhiyi Zhangb8f616f2020-12-21 21:33:07 -080031 sudo ./waf install
32 cd ..
Zhiyi Zhang3e96a0f2020-12-21 21:13:24 -080033 - name: configure
34 run: ./waf configure --with-tests
35 - name: build
36 run: ./waf
37 - name: install
Zhiyi Zhangb8f616f2020-12-21 21:33:07 -080038 run: sudo ./waf install
Zhiyi Zhang3e96a0f2020-12-21 21:13:24 -080039 - name: check
40 run: ./build/unit-tests