mirror of
https://github.com/SCST-project/scst.git
synced 2026-10-22 14:12:33 +00:00
.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:
@@ -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
|
||||
|
||||
@@ -5,6 +5,9 @@ on:
|
||||
branches:
|
||||
- master
|
||||
|
||||
env:
|
||||
WERROR: 'n'
|
||||
|
||||
jobs:
|
||||
coverity:
|
||||
if: github.repository == 'SCST-project/scst'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user