.github/workflows: Configure warnings-as-errors policy

Enable WERROR=y for CI and package builds so warnings in SCST code
are fatal.

Keep WERROR=n for regression and Coverity because these workflows
must tolerate failures outside strict SCST package gates.
This commit is contained in:
Gleb Chesnokov
2026-08-25 12:10:06 +03:00
parent b8e386a6bc
commit d29a7fe26e
4 changed files with 13 additions and 1 deletions
+4 -1
View File
@@ -2,6 +2,9 @@ name: CI
on: [push, pull_request]
env:
WERROR: 'y'
jobs:
build:
runs-on: ubuntu-latest
@@ -22,6 +25,6 @@ jobs:
- name: Build
env:
CC: ${{ matrix.compiler }}
CFLAGS: -Werror ${{ matrix.arch == 'x86' && '-m32' || '' }}
CFLAGS: ${{ matrix.arch == 'x86' && '-m32' || '' }}
LDFLAGS: ${{ matrix.arch == 'x86' && '-m32' || '' }}
run: make CC=${{matrix.compiler}} dpkg
+3
View File
@@ -5,6 +5,9 @@ on:
branches:
- master
env:
WERROR: 'n'
jobs:
coverity:
if: github.repository == 'SCST-project/scst'
+3
View File
@@ -5,6 +5,9 @@ on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
env:
WERROR: 'y'
jobs:
prepare_matrix:
name: Prepare RPM matrix
@@ -8,6 +8,9 @@ on:
branches:
- master
env:
WERROR: 'n'
jobs:
prepare_matrix:
name: Prepare kernel matrix