Skip to content

Commit e8110a9

Browse files
committed
added more libfuzzer compilation
1 parent 832ae16 commit e8110a9

2 files changed

Lines changed: 83 additions & 11 deletions

File tree

.github/workflows/build_cmake.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,11 @@ jobs:
196196
matrix:
197197
os: [ubuntu-22.04]
198198
buildtype: [debug]
199-
compiler: [{name: 'Clang 15', preset: clang-15, pkgs: 'clang-15 llvm-15'}]
199+
compiler: [ {name: 'Clang 12', preset: clang-12, pkgs: 'clang-12 llvm-12'},
200+
{name: 'Clang 13', preset: clang-13, pkgs: 'clang-13 llvm-13'},
201+
{name: 'Clang 14', preset: clang-14, pkgs: 'clang-14 llvm-14'},
202+
{name: 'Clang 15', preset: clang-15, pkgs: 'clang-15 llvm-15'}
203+
]
200204

201205
steps:
202206
- uses: actions/checkout@v3

CMakePresets.json

Lines changed: 78 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@
5353
}
5454
}
5555
},
56+
{
57+
"name": "common-fuzzing-conf",
58+
"hidden": true,
59+
"description": "Clang 15 fuzzer test",
60+
"binaryDir": "${sourceDir}/out/build/${presetName}",
61+
"installDir": "${sourceDir}/out/install/${presetName}",
62+
"cacheVariables": {
63+
"CMAKE_BUILD_TYPE": "Debug",
64+
"ENABLE_COVERAGE": "ON",
65+
"ENABLE_SANITIZER_ADDRESS": "ON",
66+
"ENABLE_SANITIZER_LEAK": "ON",
67+
"ENABLE_SANITIZER_UNDEFINED_BEHAVIOR": "ON",
68+
"ENABLE_SANITIZER_MEMORY": "OFF",
69+
"ENABLE_FUZZING": "ON"
70+
}
71+
},
5672
{
5773
"name": "windows-2019-msvc-debug",
5874
"generator": "Visual Studio 16 2019",
@@ -351,21 +367,40 @@
351367
"CMAKE_CROSSCOMPILING": "TRUE"
352368
}
353369
},
370+
{
371+
"name": "clang-12-fuzzing",
372+
"description": "Clang 12 fuzzer test",
373+
"inherits": "common-fuzzing-conf",
374+
"cacheVariables": {
375+
"CMAKE_C_COMPILER": "clang-12",
376+
"CMAKE_CXX_COMPILER": "clang++-12"
377+
}
378+
},
379+
{
380+
"name": "clang-13-fuzzing",
381+
"description": "Clang 13 fuzzer test",
382+
"inherits": "common-fuzzing-conf",
383+
"cacheVariables": {
384+
"CMAKE_C_COMPILER": "clang-13",
385+
"CMAKE_CXX_COMPILER": "clang++-13"
386+
}
387+
},
388+
{
389+
"name": "clang-14-fuzzing",
390+
"description": "Clang 14 fuzzer test",
391+
"inherits": "common-fuzzing-conf",
392+
"cacheVariables": {
393+
"CMAKE_C_COMPILER": "clang-14",
394+
"CMAKE_CXX_COMPILER": "clang++-14"
395+
}
396+
},
354397
{
355398
"name": "clang-15-fuzzing",
356399
"description": "Clang 15 fuzzer test",
357-
"binaryDir": "${sourceDir}/out/build/${presetName}",
358-
"installDir": "${sourceDir}/out/install/${presetName}",
400+
"inherits": "common-fuzzing-conf",
359401
"cacheVariables": {
360402
"CMAKE_C_COMPILER": "clang-15",
361-
"CMAKE_CXX_COMPILER": "clang++-15",
362-
"CMAKE_BUILD_TYPE": "Debug",
363-
"ENABLE_COVERAGE": "ON",
364-
"ENABLE_SANITIZER_ADDRESS": "ON",
365-
"ENABLE_SANITIZER_LEAK": "ON",
366-
"ENABLE_SANITIZER_UNDEFINED_BEHAVIOR": "ON",
367-
"ENABLE_SANITIZER_MEMORY": "OFF",
368-
"ENABLE_FUZZING": "ON"
403+
"CMAKE_CXX_COMPILER": "clang++-15"
369404
}
370405
}
371406
],
@@ -462,6 +497,18 @@
462497
"name": "build-gcc-arm-release",
463498
"configurePreset": "gcc-arm-release"
464499
},
500+
{
501+
"name": "build-clang-12-fuzzing",
502+
"configurePreset": "clang-12-fuzzing"
503+
},
504+
{
505+
"name": "build-clang-13-fuzzing",
506+
"configurePreset": "clang-13-fuzzing"
507+
},
508+
{
509+
"name": "build-clang-14-fuzzing",
510+
"configurePreset": "clang-14-fuzzing"
511+
},
465512
{
466513
"name": "build-clang-15-fuzzing",
467514
"configurePreset": "clang-15-fuzzing"
@@ -634,6 +681,27 @@
634681
"configuration": "Release",
635682
"configurePreset": "win32-gcc-x64-mingw-release"
636683
},
684+
{
685+
"name": "test-clang-12-fuzzing",
686+
"displayName": "Strict",
687+
"description": "Enable output and stop on failure",
688+
"inherits": "test-common",
689+
"configurePreset": "clang-12-fuzzing"
690+
},
691+
{
692+
"name": "test-clang-13-fuzzing",
693+
"displayName": "Strict",
694+
"description": "Enable output and stop on failure",
695+
"inherits": "test-common",
696+
"configurePreset": "clang-13-fuzzing"
697+
},
698+
{
699+
"name": "test-clang-14-fuzzing",
700+
"displayName": "Strict",
701+
"description": "Enable output and stop on failure",
702+
"inherits": "test-common",
703+
"configurePreset": "clang-14-fuzzing"
704+
},
637705
{
638706
"name": "test-clang-15-fuzzing",
639707
"displayName": "Strict",

0 commit comments

Comments
 (0)