Skip to content

Commit

Permalink
build release binaries in CI for all platforms (#706)
Browse files Browse the repository at this point in the history
* move CMAKE_BUILD_TYPE to ci-build profile
* don't build tests unless flag is set
* get catch2 version that builds on newer gcc (12+)
  • Loading branch information
scareything committed Aug 16, 2023
1 parent 40c152f commit 030a9a4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 2 additions & 4 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@
"flags-unix",
"ci-std",
"ninja-multi-config"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
]
},
{
"name": "ci-win64",
Expand Down Expand Up @@ -112,6 +109,7 @@
"binaryDir": "${sourceDir}/build",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"TLSUV_TLSLIB": "openssl"
}
},
Expand Down
4 changes: 3 additions & 1 deletion lib/ziti-tunnel-cbs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ install(TARGETS ziti-tunnel-cbs-c
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)

add_subdirectory(tests)
if(ZITI_TUNNEL_BUILD_TESTS)
add_subdirectory(tests)
endif()
4 changes: 3 additions & 1 deletion lib/ziti-tunnel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,6 @@ install(TARGETS lwipcore ziti-tunnel-sdk-c
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)

add_subdirectory(tests)
if(ZITI_TUNNEL_BUILD_TESTS)
add_subdirectory(tests)
endif()
1 change: 1 addition & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"description": "Dependencies for testing",
"dependencies": [
{
"version>=": "3.3.1",
"name": "catch2"
}
]
Expand Down

0 comments on commit 030a9a4

Please sign in to comment.