Zhiyi Zhang | 3e96a0f | 2020-12-21 21:13:24 -0800 | [diff] [blame] | 1 | name: build_v03 |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ v0.3 ] |
| 6 | pull_request: |
| 7 | branches: [ v0.3 ] |
| 8 | |
| 9 | jobs: |
| 10 | build: |
| 11 | |
Zhiyi Zhang | fe2cca7 | 2020-12-21 22:03:24 -0800 | [diff] [blame] | 12 | runs-on: ubuntu-18.04 |
Zhiyi Zhang | 3e96a0f | 2020-12-21 21:13:24 -0800 | [diff] [blame] | 13 | |
| 14 | steps: |
| 15 | - uses: actions/checkout@v2 |
Zhiyi Zhang | f67db7b | 2020-12-21 21:25:26 -0800 | [diff] [blame] | 16 | - name: install dependencies for ndncxx |
Zhiyi Zhang | fe2cca7 | 2020-12-21 22:03:24 -0800 | [diff] [blame] | 17 | run: | |
| 18 | sudo apt-get install pkg-config libssl-dev libsqlite3-dev |
Zhiyi Zhang | 10bb792 | 2020-12-21 22:15:26 -0800 | [diff] [blame] | 19 | 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 Zhang | a41c50a | 2020-12-21 22:49:51 -0800 | [diff] [blame] | 20 | 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 Zhang | 10bb792 | 2020-12-21 22:15:26 -0800 | [diff] [blame] | 22 | cd boost-1.72.0-linux-18.04 |
Zhiyi Zhang | ee71711 | 2020-12-21 22:11:58 -0800 | [diff] [blame] | 23 | ./bootstrap.sh > /dev/null 2>&1 |
| 24 | sudo ./b2 install > /dev/null 2>&1 |
Zhiyi Zhang | fe2cca7 | 2020-12-21 22:03:24 -0800 | [diff] [blame] | 25 | cd .. |
Zhiyi Zhang | 4951366 | 2020-12-21 21:21:13 -0800 | [diff] [blame] | 26 | - name: prepare ndncxx |
| 27 | run: | |
| 28 | git clone https://github.com/named-data/ndn-cxx.git |
| 29 | cd ndn-cxx |
Zhiyi Zhang | 890b66a | 2020-12-23 21:11:14 -0800 | [diff] [blame] | 30 | git checkout ndn-cxx-0.7.1 |
Zhiyi Zhang | 4951366 | 2020-12-21 21:21:13 -0800 | [diff] [blame] | 31 | ./waf configure |
| 32 | ./waf |
Zhiyi Zhang | b8f616f | 2020-12-21 21:33:07 -0800 | [diff] [blame] | 33 | sudo ./waf install |
| 34 | cd .. |
Zhiyi Zhang | 3e96a0f | 2020-12-21 21:13:24 -0800 | [diff] [blame] | 35 | - name: configure |
| 36 | run: ./waf configure --with-tests |
| 37 | - name: build |
| 38 | run: ./waf |
| 39 | - name: install |
Zhiyi Zhang | b8f616f | 2020-12-21 21:33:07 -0800 | [diff] [blame] | 40 | run: sudo ./waf install |
Zhiyi Zhang | 3e96a0f | 2020-12-21 21:13:24 -0800 | [diff] [blame] | 41 | - name: check |
Zhiyi Zhang | 0144784 | 2020-12-24 21:21:42 -0800 | [diff] [blame^] | 42 | run: | |
| 43 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib |
| 44 | sudo ./build/unit-tests |