diff --git a/.github/workflows/reusable_build_packages.yaml b/.github/workflows/reusable_build_packages.yaml index 6edb3059e40..4fe08b92eb0 100644 --- a/.github/workflows/reusable_build_packages.yaml +++ b/.github/workflows/reusable_build_packages.yaml @@ -270,7 +270,7 @@ jobs: - name: Build project run: | - cmake --build build + cmake --build build --target package - name: Run unit Tests run: | diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c5c1c1758c..a77063b4d96 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,7 +233,11 @@ if (NOT MINIMAL_BUILD) endif() # Installation -install(FILES falco.yaml DESTINATION "${FALCO_ETC_DIR}" COMPONENT "${FALCO_COMPONENT_NAME}") +if(WIN32) + install(FILES falco.yaml DESTINATION etc/falco/ COMPONENT "${FALCO_COMPONENT_NAME}") +else() + install(FILES falco.yaml DESTINATION "${FALCO_ETC_DIR}" COMPONENT "${FALCO_COMPONENT_NAME}") +endif() if(NOT MINIMAL_BUILD) # Coverage diff --git a/cmake/modules/rules.cmake b/cmake/modules/rules.cmake index 0ae84eef068..11f648616c3 100644 --- a/cmake/modules/rules.cmake +++ b/cmake/modules/rules.cmake @@ -34,7 +34,11 @@ set(FALCOSECURITY_RULES_LOCAL_PATH "${PROJECT_BINARY_DIR}/falcosecurity-rules-lo file(WRITE "${FALCOSECURITY_RULES_LOCAL_PATH}" "# Your custom rules!\n") if(NOT DEFINED FALCO_ETC_DIR) - set(FALCO_ETC_DIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/falco") + if(WIN32) + set(FALCO_ETC_DIR "etc/falco") + else() + set(FALCO_ETC_DIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/falco") + endif() endif() if(NOT DEFINED FALCO_RULES_DEST_FILENAME)