|
40 | 40 | cxx-standard-version: "11"
|
41 | 41 | gcc-version: "11"
|
42 | 42 | clang-version: "14"
|
43 |
| - # Ubuntu 22.04, C++17, gcc 11 with gcovr, Clang 14 (needed for clang-format and clang-tidy), C++17 |
| 43 | + # Ubuntu 22.04, C++17, gcc 11 with gcovr, Clang 14 (needed for clang-format and clang-tidy) |
44 | 44 | - os: "ubuntu-22.04"
|
45 | 45 | python-version: "3.8"
|
46 | 46 | java-version: "8"
|
|
91 | 91 |
|
92 | 92 | - name: Install gcc-${{matrix.gcc-version}} compiler
|
93 | 93 | run: |
|
| 94 | + sudo apt-get update |
94 | 95 | sudo apt-get install gcc-${{matrix.gcc-version}}
|
95 | 96 | sudo apt-get install g++-${{matrix.gcc-version}} g++-${{matrix.gcc-version}}-multilib
|
96 | 97 |
|
@@ -176,6 +177,45 @@ jobs:
|
176 | 177 | CMAKE_EXTRA_ARGS: "-DZSERIO_ENABLE_WERROR=1 -DCMAKE_BUILD_TYPE=Debug"
|
177 | 178 | SANITIZERS_ENABLED: 1
|
178 | 179 |
|
| 180 | + - name: Run Zserio tests with extra arguments |
| 181 | + # -DZSERIO_ENABLE_WERROR=1 fails for gcc because of false positive warning |
| 182 | + run: | |
| 183 | + # -withRangeCheckCode -withValidationCode conflicts with -withoutWriterCode |
| 184 | + export ZSERIO_EXTRA_ARGS="-withTypeInfoCode -withCodeComments" |
| 185 | + scripts/test.sh -p -i arguments/without_writer_code java python |
| 186 | + ZSERIO_EXTRA_ARGS="${ZSERIO_EXTRA_ARGS} -setCppAllocator polymorphic -withReflectionCode" \ |
| 187 | + scripts/test.sh -p -i arguments/without_writer_code cpp-linux64-gcc cpp-linux32-gcc \ |
| 188 | + cpp-linux64-clang cpp-linux32-clang |
| 189 | + export ZSERIO_EXTRA_ARGS="${ZSERIO_EXTRA_ARGS} -withRangeCheckCode -withValidationCode" |
| 190 | + scripts/test.sh -p -x arguments/without_writer_code java python |
| 191 | + ZSERIO_EXTRA_ARGS="${ZSERIO_EXTRA_ARGS} -setCppAllocator polymorphic -withReflectionCode" \ |
| 192 | + scripts/test.sh -p -x arguments/without_writer_code cpp-linux64-gcc cpp-linux32-gcc \ |
| 193 | + cpp-linux64-clang cpp-linux32-clang |
| 194 | + export ZSERIO_EXTRA_ARGS="-setTopLevelPackage top.level" |
| 195 | + ZSERIO_EXTRA_ARGS="-setTopLevelPackage top.level" scripts/test.sh doc xml |
| 196 | + env: |
| 197 | + CMAKE_EXTRA_ARGS: "-DCMAKE_BUILD_TYPE=Release" |
| 198 | + |
| 199 | + - name: Run Zserio tests with extra arguments (Debug Build) |
| 200 | + # sanitizers do not work on cpp-linux32-clang when cross-compiling |
| 201 | + # -DZSERIO_ENABLE_WERROR=1 fails for gcc because of false positive warning |
| 202 | + run: | |
| 203 | + if [ -f "`which clang-tidy-14`" ] ; then |
| 204 | + export CLANG_TIDY_BIN=clang-tidy-14 |
| 205 | + fi |
| 206 | + # -withRangeCheckCode -withValidationCode conflicts with -withoutWriterCode |
| 207 | + export ZSERIO_EXTRA_ARGS="-withTypeInfoCode -withCodeComments \ |
| 208 | + -setCppAllocator polymorphic -withReflectionCode" |
| 209 | + scripts/test.sh -p -i arguments/without_writer_code cpp-linux64-gcc cpp-linux32-gcc \ |
| 210 | + cpp-linux64-clang |
| 211 | + # disabled because of 6 hours time limit |
| 212 | + # export ZSERIO_EXTRA_ARGS="${ZSERIO_EXTRA_ARGS} -withRangeCheckCode -withValidationCode" |
| 213 | + # scripts/test.sh -p -x arguments/without_writer_code cpp-linux64-gcc cpp-linux32-gcc \ |
| 214 | + # cpp-linux64-clang |
| 215 | + env: |
| 216 | + CMAKE_EXTRA_ARGS: "-DZSERIO_ENABLE_WERROR=1 -DCMAKE_BUILD_TYPE=Debug" |
| 217 | + SANITIZERS_ENABLED: 1 |
| 218 | + |
179 | 219 | - name: Run Zserio integration tests for repeated generation
|
180 | 220 | run: |
|
181 | 221 | scripts/test_gen.sh all-linux64-gcc cpp-linux32-gcc cpp-linux64-clang cpp-linux32-clang
|
|
0 commit comments