Skip to content

Commit 2c72399

Browse files
committed
ci: enable sanitizers
Enables: * Clang and GCC: UBSan, ASan * Clang only: IntSan BoundsSan
1 parent c71a28d commit 2c72399

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
standards: '20'
4242
latest-factors: |
4343
msvc Optimized-Debug
44-
gcc Coverage
44+
gcc UBSan ASan Coverage
45+
clang UBSan ASan IntSan BoundsSan
4546
factors: ''
4647
runs-on: |
4748
apple-clang: macos-15
@@ -74,11 +75,12 @@ jobs:
7475
llvm-archive-basename: llvm-{{ os }}-{{ llvm-build-preset-prefix }}-{{ llvm-id }}
7576
llvm-archive-extension: {{#if (ieq os 'windows') }}7z{{else}}tar.bz2{{/if}}
7677
llvm-archive-filename: {{ llvm-archive-basename }}.{{ llvm-archive-extension }}
77-
mrdocs-ccflags: {{ ccflags }} {{#if (eq compiler 'gcc') }}-static{{/if}} {{#if asan }}-static-libasan{{/if}} {{#if tsan }}-static-libtsan{{/if}}
78-
mrdocs-cxxflags: {{ cxxflags }} {{#if (eq compiler 'gcc') }}-static{{/if}} {{#if asan }}-static-libasan{{/if}} {{#if tsan }}-static-libtsan{{/if}}
78+
mrdocs-ccflags: ${{ ccflags }} {{#if (eq compiler 'gcc') }}-static{{/if}} {{#if asan }}-static-libasan{{/if}} {{#if tsan }}-static-libtsan{{/if}}
79+
mrdocs-cxxflags: ${{ cxxflags }} {{#if (eq compiler 'gcc') }}-static{{/if}} {{#if asan }}-static-libasan{{/if}} {{#if tsan }}-static-libtsan{{/if}}
7980
mrdocs-package-generators: {{#if (ieq os 'windows') }}7Z ZIP WIX{{else}}TGZ TXZ{{/if}}
8081
mrdocs-release-package-artifact: release-packages-{{ lowercase os }}
8182
output-file: matrix.json
83+
trace-commands: true
8284

8385
# Set up the version as expected by the LLVM matrix script and @actions/core
8486
- name: Setup Node.js

0 commit comments

Comments
 (0)