Enhance CI workflow and packaging process
- Added support for post-build test discovery in the release workflow to improve testing efficiency. - Updated Windows packaging logic to prefer CMake-generated packages, with fallback to manual packaging if necessary. - Improved error handling and output messages during the packaging process for better clarity and reliability. - Conditional test discovery based on the YAZE_BUILD_TESTS flag in CMakeLists.txt to streamline test execution.
This commit is contained in:
@@ -146,13 +146,14 @@ elseif(WIN32)
|
||||
target_compile_definitions(yaze_test PRIVATE "WINDOWS")
|
||||
endif()
|
||||
|
||||
include(GoogleTest)
|
||||
|
||||
# Configure test discovery with efficient labeling for CI/CD
|
||||
include(GoogleTest)
|
||||
|
||||
# Discover all tests with default properties
|
||||
gtest_discover_tests(yaze_test)
|
||||
# Only discover tests if tests are enabled
|
||||
if(YAZE_BUILD_TESTS)
|
||||
include(GoogleTest)
|
||||
|
||||
# Discover all tests with default properties
|
||||
gtest_discover_tests(yaze_test)
|
||||
endif()
|
||||
|
||||
# Add test labels using a simpler approach
|
||||
# Note: Test names might have prefixes, we'll use regex patterns for CI
|
||||
Reference in New Issue
Block a user