From d65c6183c0d8b365aa182c3d9026ba85522531f2 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 17 Aug 2022 20:57:15 +0100 Subject: Move -Werror to CI (#2362) * move -Werror to CI This allows people with a more up-to-date system than you to still compile your project, while still allowing you to block on every warning in your own development. * Fixes. * More fix. * more fix. * Disable werror for gcc. * Fix bash. * fix * fix yml Co-authored-by: Yong He Co-authored-by: Yong He --- .github/workflows/linux.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.github/workflows/linux.yml') diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e25d03908..ebc658792 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -21,10 +21,15 @@ jobs: submodules: 'true' fetch-depth: '0' - name: build - run: + run: | CC=${{matrix.compiler}} CONFIGURATION=${{matrix.configuration}} ARCH=${{matrix.platform}} + if [[ "$CC" == "clang" ]]; then + CFLAGS=-Werror + CPPFLAGS=-Werror + CXXFLAGS=-Werror + fi source ./github_build.sh - uses: actions/upload-artifact@v3 with: -- cgit v1.2.3