blob: e8545c391bf343ac5dd7c42eca1731a139ca3634 [file] [log] [blame]
name: build_v03
on:
push:
branches: [ v0.3 ]
pull_request:
branches: [ v0.3 ]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: install dependencies for ndncxx
run: |
sudo apt-get install pkg-config libssl-dev libsqlite3-dev
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
mkdir boost-1.72.0-linux-18.04
tar -xzf boost-1.72.0-linux-18.04.tar.gz -C boost-1.72.0-linux-18.04
cd boost-1.72.0-linux-18.04
./bootstrap.sh > /dev/null 2>&1
sudo ./b2 install > /dev/null 2>&1
cd ..
- name: prepare ndncxx
run: |
git clone https://github.com/named-data/ndn-cxx.git
cd ndn-cxx
git checkout ndn-cxx-0.7.1
./waf configure
./waf
sudo ./waf install
cd ..
- name: configure
run: ./waf configure --with-tests
- name: build
run: ./waf
- name: install
run: sudo ./waf install
- name: check
run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
sudo ./build/unit-tests