Skip to content

Commit

Permalink
Refactor installation commands in .github/workflows/ubuntu.yml to rem…
Browse files Browse the repository at this point in the history
…ove unnecessary use of 'sudo'
  • Loading branch information
janjurca committed May 5, 2024
1 parent c21779e commit cfeeaca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
steps:
- name: install_dependencies
run: |
apt update
apt install -y cmake g++ make libspdlog-dev libfmt-dev git libcxxopts-dev nlohmann-json3-dev
sudo apt update
sudo apt install -y cmake g++ make libspdlog-dev libfmt-dev git libcxxopts-dev nlohmann-json3-dev
- uses: actions/checkout@v4
with:
Expand All @@ -35,7 +35,9 @@ jobs:
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}

- name: configure
run: cmake -Stest -Bbuild -DENABLE_TEST_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug
run: |
g++ --version
cmake -Stest -Bbuild -DENABLE_TEST_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug
- name: build
run: cmake --build build -j4
Expand Down

0 comments on commit cfeeaca

Please sign in to comment.