mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
ci: automatically maximize MIN_LOG_LEVEL if CI detected (#22248)
Detect if on CI by checking that the CI environment variable is set to "true". This is a common pattern among CI providers, including github actions and cirrus.
This commit is contained in:
@@ -412,6 +412,9 @@ else()
|
||||
endif()
|
||||
|
||||
# Log level (MIN_LOG_LEVEL in log.h)
|
||||
if($ENV{CI} MATCHES "true")
|
||||
set(MIN_LOG_LEVEL 3)
|
||||
endif()
|
||||
if("${MIN_LOG_LEVEL}" MATCHES "^$")
|
||||
# Minimize logging for release-type builds.
|
||||
target_compile_definitions(main_lib INTERFACE MIN_LOG_LEVEL=$<IF:$<CONFIG:Debug>,1,3>)
|
||||
|
Reference in New Issue
Block a user