From d29a7fe26eae4db04d43da542f3271391cb5741e Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Mon, 24 Aug 2026 21:07:25 +0300 Subject: [PATCH] .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. --- .github/workflows/ci.yml | 5 ++++- .github/workflows/coverity.yml | 3 +++ .github/workflows/rpm.yml | 3 +++ .github/workflows/run_regression_tests.yaml | 3 +++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02bd99829..f60032945 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 307eb365f..86af57ea3 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -5,6 +5,9 @@ on: branches: - master +env: + WERROR: 'n' + jobs: coverity: if: github.repository == 'SCST-project/scst' diff --git a/.github/workflows/rpm.yml b/.github/workflows/rpm.yml index c8bd8b9e0..56f3ad78a 100644 --- a/.github/workflows/rpm.yml +++ b/.github/workflows/rpm.yml @@ -5,6 +5,9 @@ on: [push, pull_request, workflow_dispatch] permissions: contents: read +env: + WERROR: 'y' + jobs: prepare_matrix: name: Prepare RPM matrix diff --git a/.github/workflows/run_regression_tests.yaml b/.github/workflows/run_regression_tests.yaml index 75e9edc54..ff37db8f5 100644 --- a/.github/workflows/run_regression_tests.yaml +++ b/.github/workflows/run_regression_tests.yaml @@ -8,6 +8,9 @@ on: branches: - master +env: + WERROR: 'n' + jobs: prepare_matrix: name: Prepare kernel matrix