From 771c695266220c6b9096f8a4a1d7f60a664dd638 Mon Sep 17 00:00:00 2001 From: "a.stecher" Date: Mon, 16 Sep 2024 11:37:48 +0200 Subject: [PATCH] Uses sudo for copying the shared lib. --- .github/workflows/sanitizers.yaml | 4 ++-- .github/workflows/tests.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sanitizers.yaml b/.github/workflows/sanitizers.yaml index 516e9972c..ec5879b1f 100644 --- a/.github/workflows/sanitizers.yaml +++ b/.github/workflows/sanitizers.yaml @@ -106,8 +106,8 @@ jobs: run: | cd edant/watcher/watcher-c/ gcc -o libwatcher.so ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -O3 -Wall -Wextra -fPIC -shared - cp libwatcher.so /usr/local/lib/libwatcher.so - ldconfig + sudo cp libwatcher.so /usr/local/lib/libwatcher.so + sudo ldconfig - name: Set Set CGO flags run: | diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 84fbe56e7..d323e3872 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -54,8 +54,8 @@ jobs: run: | cd edant/watcher/watcher-c/ gcc -o libwatcher.so ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -O3 -Wall -Wextra -fPIC -shared - cp libwatcher.so /usr/local/lib/libwatcher.so - ldconfig + sudo cp libwatcher.so /usr/local/lib/libwatcher.so + sudo ldconfig - name: Set CGO flags run: |