Skip to content

Commit

Permalink
Install Prometheus in lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmit799 committed Oct 9, 2023
1 parent 57c1ed1 commit a9e2b24
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@ jobs:
- name: Install clang-tidy
run: |
sudo apt-get update
sudo apt-get install -y cmake g++ gcc libssl-dev prometheus-cpp-dev clang-tidy
sudo apt-get install -y cmake g++ gcc curl libssl-dev clang-tidy
- name: Install Prometheus
run: |
curl -OL https://github.com/jupp0r/prometheus-cpp/releases/download/v1.1.0/prometheus-cpp-with-submodules.tar.gz
tar -xzf prometheus-cpp-with-submodules.tar.gz
mkdir prometheus-cpp-with-submodules/_build
cd prometheus-cpp-with-submodules/_build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_STANDARD=20 -DBUILD_SHARED_LIBS=ON -DENABLE_PUSH=OFF -DENABLE_COMPRESSION=OFF
cmake --build . --target install
cd ../../
- name: Prepare compile_commands.json
run: |
Expand Down

0 comments on commit a9e2b24

Please sign in to comment.