From acea57ac4462a3739908f9480c6f9f1108bad5c0 Mon Sep 17 00:00:00 2001 From: Luca Guerra Date: Thu, 1 Feb 2024 15:40:47 +0000 Subject: [PATCH] update(ci): allow version/static checks to work even if libelf is not installed Signed-off-by: Luca Guerra --- .github/workflows/reusable_fetch_version.yaml | 2 +- .github/workflows/staticanalysis.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable_fetch_version.yaml b/.github/workflows/reusable_fetch_version.yaml index 0217ef63..458c1578 100644 --- a/.github/workflows/reusable_fetch_version.yaml +++ b/.github/workflows/reusable_fetch_version.yaml @@ -31,7 +31,7 @@ jobs: - name: Configure project run: | mkdir build && cd build - cmake -DUSE_BUNDLED_DEPS=On .. + cmake -DUSE_BUNDLED_DEPS=On -DUSE_DYNAMIC_LIBELF=Off .. - name: Load and store Falco version output id: store_version diff --git a/.github/workflows/staticanalysis.yaml b/.github/workflows/staticanalysis.yaml index 1186c9e0..43868cff 100644 --- a/.github/workflows/staticanalysis.yaml +++ b/.github/workflows/staticanalysis.yaml @@ -20,7 +20,7 @@ jobs: - name: Build and run cppcheck 🏎️ run: | mkdir build - cd build && cmake -DUSE_BUNDLED_DEPS=On -DBUILD_WARNINGS_AS_ERRORS=ON -DCREATE_TEST_TARGETS=Off -DCMAKE_BUILD_TYPE="release" -DBUILD_BPF=Off -DBUILD_DRIVER=Off .. + cd build && cmake -DUSE_BUNDLED_DEPS=On -DUSE_DYNAMIC_LIBELF=Off -DBUILD_WARNINGS_AS_ERRORS=ON -DCREATE_TEST_TARGETS=Off -DCMAKE_BUILD_TYPE="release" -DBUILD_BPF=Off -DBUILD_DRIVER=Off .. make -j4 cppcheck make -j4 cppcheck_htmlreport