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:
scawful
2025-09-28 14:11:02 -04:00
parent 560c8fd4dd
commit a4821a28e1
2 changed files with 63 additions and 15 deletions

View File

@@ -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