File tree Expand file tree Collapse file tree 3 files changed +33
-2
lines changed
Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Ubuntu 22.04 CI (GCC 11) with Sanitizers
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ ubuntu-build :
7+ if : >-
8+ ! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
9+ ! contains(toJSON(github.event.commits.*.message), '[skip github]')
10+ runs-on : ubuntu-22.04
11+ steps :
12+ - uses : actions/checkout@v3
13+ - name : Use cmake
14+ run : |
15+ mkdir builddebug &&
16+ cd builddebug &&
17+ cmake -DIS_UTF8_SANITIZE=ON -DCMAKE_BUILD_TYPE=Debug .. &&
18+ cmake --build . &&
19+ ctest -j --output-on-failure -LE explicitonly &&
20+ cd .. &&
21+ mkdir build &&
22+ cd build &&
23+ cmake -DIS_UTF8_SANITIZE=ON .. &&
24+ cmake --build . &&
25+ ctest -j --output-on-failure -LE explicitonly
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.15)
33project (is_utf8
44 DESCRIPTION "Fast UTF-8 Validation"
55 LANGUAGES CXX
6- VERSION 1.0.0
6+ VERSION 1.0.1
77)
88
99include (GNUInstallDirs)
@@ -26,7 +26,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
2626set (CMAKE_CXX_EXTENSIONS OFF )
2727set (CMAKE_MACOSX_RPATH OFF )
2828
29- set (IS_UTF8_LIB_VERSION "1.0.0 " CACHE STRING "is_utf8 library version" )
29+ set (IS_UTF8_LIB_VERSION "1.0.1 " CACHE STRING "is_utf8 library version" )
3030set (IS_UTF8_LIB_SOVERSION "1" CACHE STRING "is_utf8 library soversion" )
3131
3232set (IS_UTF8_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} )
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ add_library(is_utf8 STATIC is_utf8.cpp)
77target_include_directories (is_utf8 PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} > )
88target_include_directories (is_utf8 PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /include>" )
99
10+ if (IS_UTF8_SANITIZE)
11+ target_compile_options (is_utf8 INTERFACE -fsanitize=address -fno-omit-frame-pointer -fno-sanitize-recover=all )
12+ target_compile_definitions (is_utf8 INTERFACE ASAN_OPTIONS=detect_leaks=1)
13+ target_link_libraries (is_utf8 INTERFACE -fsanitize=address -fno-omit-frame-pointer -fno-sanitize-recover=all )
14+ endif ()
15+
1016if (MSVC )
1117 if ("${MSVC_TOOLSET_VERSION} " STREQUAL "140" )
1218 target_compile_options (is_utf8 INTERFACE /W0 /sdl)
You can’t perform that action at this time.
0 commit comments