Skip to content

Commit 6483ff8

Browse files
committed
ci: treat warnings as errors
1 parent e2c8aac commit 6483ff8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@ jobs:
7979
llvm-archive-extension: {{#if (ieq os 'windows') }}7z{{else}}tar.bz2{{/if}}
8080
llvm-archive-filename: {{{ llvm-archive-basename }}}.{{{ llvm-archive-extension }}}
8181
llvm-sanitizer-config: {{#if (and (ne compiler 'clang') (ne compiler 'apple-clang'))}}{{else if ubsan}}Undefined{{else if asan}}Address{{else if msan}}MemoryWithOrigins{{/if}}
82+
warning-flags: {{#if (eq compiler 'msvc') }}/WX {{else}}-Werror {{/if}}
8283
common-flags-base: {{#if (ieq compiler 'clang')}}-gz=zstd {{/if}}
8384
common-flags: {{{ common-flags-base }}}{{#if msan }}-fsanitize-memory-track-origins {{/if}}
8485
common-ccflags: {{{ ccflags }}} {{{ common-flags }}}
85-
mrdocs-flags: {{#if (and (eq compiler 'gcc') (not asan)) }}-static{{/if}}
86+
mrdocs-flags: {{{ warning-flags }}}{{#if (and (eq compiler 'gcc') (not asan)) }}-static {{/if}}
8687
mrdocs-ccflags: {{{ common-ccflags }}} {{{ mrdocs-flags }}}
8788
mrdocs-package-generators: {{#if (ieq os 'windows') }}7Z ZIP WIX{{else}}TGZ TXZ{{/if}}
8889
mrdocs-release-package-artifact: release-packages-{{{ lowercase os }}}

0 commit comments

Comments
 (0)