diff --git a/.github/workflows/build-node.sh b/.github/workflows/build-node.sh new file mode 100755 index 00000000..1af8f7ce --- /dev/null +++ b/.github/workflows/build-node.sh @@ -0,0 +1,26 @@ +#!/bin/bash +set -eo pipefail + +# print and run a command +function ee() +{ + echo "$ $*" + eval "$@" +} + +# debug code +echo "CC='${CC}'" +echo "CXX='${CXX}'" +ee cmake --version + +# build +ee mkdir build +ee pushd build +ee cmake .. +ee make -j "$(nproc)" + +# pack +ee popd +ee 'tar -czf build.tar.gz --exclude="*.o" build/*' + +echo "Done! - ${0##*/}"