From f411eee061d6e3921ee93cda94675821a533baa2 Mon Sep 17 00:00:00 2001 From: HPDell Date: Sun, 14 Jul 2024 16:50:51 +0100 Subject: [PATCH 1/2] fix(workflow): use sudo when installing --- .github/workflows/cmake.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index e6bfad02..eeeb54a1 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -41,7 +41,7 @@ jobs: run: | cmake -B build -S . -DCMAKE_BUILD_TYPE:STRING=Release -DWITH_TESTS:BOOL=OFF cmake --build build --config Release - cmake --install build + sudo cmake --install build - name: Test Find run: | cmake -B build/CMakeFind -S test/CMakeFind @@ -100,7 +100,7 @@ jobs: mkdir build cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE:STRING=Release -DWITH_TESTS:BOOL=OFF cmake --build build --config Release - cmake --install build + sudo cmake --install build - name: Test Find run: | cmake -B build/CMakeFind -S test/CMakeFind From 04218486ebe75a1c3264e1cece739e04ae64ac6f Mon Sep 17 00:00:00 2001 From: HPDell Date: Sun, 14 Jul 2024 17:16:23 +0100 Subject: [PATCH 2/2] edit: remove sudo in ubuntu container [skip ci] --- .github/workflows/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index eeeb54a1..2c3908b7 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -41,7 +41,7 @@ jobs: run: | cmake -B build -S . -DCMAKE_BUILD_TYPE:STRING=Release -DWITH_TESTS:BOOL=OFF cmake --build build --config Release - sudo cmake --install build + cmake --install build - name: Test Find run: | cmake -B build/CMakeFind -S test/CMakeFind