From 5c86e55a2d5e78ea933ad21ab9c9a691bc6fbd05 Mon Sep 17 00:00:00 2001 From: Leonardo Parente <23251360+leoparente@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:41:34 -0300 Subject: [PATCH] test build --- .github/workflows/build_cross.yml | 10 ++++------ src/inputs/pcap/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_cross.yml b/.github/workflows/build_cross.yml index e3db48d1a..f57afe68f 100644 --- a/.github/workflows/build_cross.yml +++ b/.github/workflows/build_cross.yml @@ -86,9 +86,8 @@ jobs: path: src - name: Create Conan configuration + working-directory: ${{github.workspace}}/src run: | - # init config - cd src/ conan config list python3 -c 'import yaml; p = "build/settings.yml"; d = yaml.safe_load(open(p)); d["compiler"]["gcc"]["libc"] = ["glibc", "musl"]; yaml.safe_dump(d, open(p, "w"))' conan profile detect @@ -117,8 +116,8 @@ jobs: run: sed -i "/crashpad/d" ${{github.workspace}}/src/conanfile.py - name: Configure + working-directory: ${{github.workspace}}/src/build run: | - cd ${{github.workspace}}/src/build export CC CXX export LDFLAGS=-static cmake .. \ @@ -131,9 +130,8 @@ jobs: -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic - name: Build - run: | - cd ${{github.workspace}}/src/build - sudo make -j4 VERBOSE=1 + working-directory: ${{github.workspace}}/src/build + run: cmake --build . --config Release -- -j 4 - name: Print sccache stats run: | diff --git a/src/inputs/pcap/CMakeLists.txt b/src/inputs/pcap/CMakeLists.txt index 054d0c4b8..bae644497 100644 --- a/src/inputs/pcap/CMakeLists.txt +++ b/src/inputs/pcap/CMakeLists.txt @@ -25,9 +25,9 @@ target_include_directories(VisorInputPcap target_link_libraries(VisorInputPcap PUBLIC + ${ADDITIONAL_LIBS} Visor::Core Visor::Lib::Utils - ${ADDITIONAL_LIBS} ) set(VISOR_STATIC_PLUGINS ${VISOR_STATIC_PLUGINS} Visor::Input::Pcap PARENT_SCOPE)