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 https://github.com/actions/boost-versions/releases/download/1.72.0-20200608.4/boost-1.72.0-linux-18.04-gcc-x64.tar.gz | |
tar -zxvf boost-1.72.0-linux-18.04-gcc-x64.tar.gz | |
cd boost-1.72.0-linux-18.04-gcc-x64 | |
./bootstrap.sh | |
sudo ./b2 install | |
cd .. | |
- name: prepare ndncxx | |
run: | | |
git clone https://github.com/named-data/ndn-cxx.git | |
cd ndn-cxx | |
./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: ./build/unit-tests |