We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c92e872 commit 3a084caCopy full SHA for 3a084ca
.github/workflows/ci.yml
@@ -30,5 +30,22 @@ jobs:
30
libboost-filesystem-dev libboost-program-options-dev \
31
libboost-python-dev libboost-regex-dev
32
33
+ - name: '[Focal] Add sanitizers to CXXFLAGS'
34
+ if: matrix.version >= 20.04
35
+ run: |
36
+ # Use ASAN and UBSAN
37
+ CXXFLAGS="-fsanitize=address,undefined"
38
+ # Recommended for better error traces
39
+ CXXFLAGS="$CXXFLAGS -fno-omit-frame-pointer"
40
+ # Make UBSAN reports fatal
41
+ CXXFLAGS="$CXXFLAGS -fno-sanitize-recover=all"
42
+
43
+ # Make UBSAN print whole stack traces
44
+ UBSAN_OPTIONS="print_stacktrace=1"
45
46
+ # Store the env variables
47
+ echo "CXXFLAGS=$CXXFLAGS" >> "$GITHUB_ENV"
48
+ echo "UBSAN_OPTIONS=$UBSAN_OPTIONS" >> "$GITHUB_ENV"
49
50
- name: Build and check
51
run: make distcheck
0 commit comments