blob: e8545c391bf343ac5dd7c42eca1731a139ca3634 [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
Zhiyi Zhang10bb7922020-12-21 22:15:26 -080019 wget -O boost-1.72.0-linux-18.04.tar.gz https://github.com/actions/boost-versions/releases/download/1.72.0-20200608.4/boost-1.72.0-linux-18.04-gcc-x64.tar.gz > /dev/null 2>&1
Zhiyi Zhanga41c50a2020-12-21 22:49:51 -080020 mkdir boost-1.72.0-linux-18.04
21 tar -xzf boost-1.72.0-linux-18.04.tar.gz -C boost-1.72.0-linux-18.04
Zhiyi Zhang10bb7922020-12-21 22:15:26 -080022 cd boost-1.72.0-linux-18.04
Zhiyi Zhangee717112020-12-21 22:11:58 -080023 ./bootstrap.sh > /dev/null 2>&1
24 sudo ./b2 install > /dev/null 2>&1
Zhiyi Zhangfe2cca72020-12-21 22:03:24 -080025 cd ..
Zhiyi Zhang49513662020-12-21 21:21:13 -080026 - name: prepare ndncxx
27 run: |
28 git clone https://github.com/named-data/ndn-cxx.git
29 cd ndn-cxx
Zhiyi Zhang890b66a2020-12-23 21:11:14 -080030 git checkout ndn-cxx-0.7.1
Zhiyi Zhang49513662020-12-21 21:21:13 -080031 ./waf configure
32 ./waf
Zhiyi Zhangb8f616f2020-12-21 21:33:07 -080033 sudo ./waf install
34 cd ..
Zhiyi Zhang3e96a0f2020-12-21 21:13:24 -080035 - name: configure
36 run: ./waf configure --with-tests
37 - name: build
38 run: ./waf
39 - name: install
Zhiyi Zhangb8f616f2020-12-21 21:33:07 -080040 run: sudo ./waf install
Zhiyi Zhang3e96a0f2020-12-21 21:13:24 -080041 - name: check
Zhiyi Zhang01447842020-12-24 21:21:42 -080042 run: |
43 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
44 sudo ./build/unit-tests