1
0

chore: update github build script.

- enable gtest and benchmark build.
- allow install gtest and benchmark binary.
- add test and benchmark step in github action.
This commit is contained in:
2026-01-22 16:10:54 +08:00
parent fe4193efa7
commit 1c1e709ed1
5 changed files with 114 additions and 66 deletions

View File

@@ -61,6 +61,11 @@ PRIVATE
GTest::gtest_main
)
# Install binary
install(TARGETS YYCCTest
RUNTIME DESTINATION ${YYCC_INSTALL_BIN_PATH}
)
# Discover all test
include(GoogleTest)
gtest_discover_tests(YYCCTest)