Skip to content

Commit

Permalink
Install Prometheus as root on CI
Browse files Browse the repository at this point in the history
- Not a big fan of this, but getting permission errors installing into /usr/local otherwise.
  • Loading branch information
ksmit799 committed Oct 9, 2023
1 parent a9e2b24 commit 2137f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
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
sudo cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_STANDARD=20 -DBUILD_SHARED_LIBS=ON -DENABLE_PUSH=OFF -DENABLE_COMPRESSION=OFF
sudo cmake --build . --target install
cd ../../
- name: Prepare compile_commands.json
Expand Down

0 comments on commit 2137f4b

Please sign in to comment.