2 # Installs NNG then run a build script in the repository
3 # Assumes ubuntu - uses apt-get
5 echo "--> build-alarm-go-ubuntu.sh"
7 echo "Install packages"
8 sudo apt-get install -y cmake ninja-build
10 # NNG repo is not frequently tagged so it's pinned to a commit hash.
11 # This commit provides fix to the proxy-reconnect
12 # bug that we identified: https://github.com/nanomsg/nng/issues/970
13 echo "Clone and build NNG"
14 git clone https://github.com/nanomsg/nng.git
16 && git checkout e618abf8f3db2a94269a79c8901a51148d48fcc2 \
19 && cmake3 -DBUILD_SHARED_LIBS=1 -G Ninja .. \
21 && sudo ninja-build install)
23 cmd="./adapter/build_adapter.sh"
24 echo "INFO: invoking build script: $cmd"
27 echo "--> build-alarm-go-ubuntu.sh ends"