minetest/util/ci/build_prometheus_cpp.sh

14 lines
305 B
Bash
Raw Permalink Normal View History

#!/bin/bash -eu
cd /tmp
git clone --recursive --depth 1 --shallow-submodules \
https://github.com/jupp0r/prometheus-cpp
mkdir prometheus-cpp/build
cd prometheus-cpp/build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTING=0
2021-12-23 04:18:27 +01:00
make -j$(nproc)
sudo make install