Skip to content

Commit d531e9a

Browse files
committed
Github action: Always set -Werror
Remove special cases disabling warnings, because they are in the CMake config now.
1 parent 1e8978c commit d531e9a

1 file changed

Lines changed: 9 additions & 44 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -24,43 +24,15 @@ jobs:
2424
cpp_compiler: [g++]
2525
cpp_version: [14]
2626
include:
27-
- image: "ubuntu:22.04"
28-
CXXFLAGS: -Wno-stringop-overread
29-
- image: "ubuntu:24.04"
30-
CXXFLAGS: -Wno-stringop-overread -Wno-dangling-reference
31-
- image: "debian:bookworm"
32-
cpp_version: 14
33-
CXXFLAGS: -Wno-stringop-overread
34-
- image: "debian:bookworm"
35-
cpp_version: 17
36-
- image: "debian:bookworm"
37-
cpp_version: 20
38-
- image: "debian:bookworm"
39-
c_compiler: clang
40-
cpp_compiler: clang++
4127
- image: "debian:bookworm"
4228
c_compiler: clang
4329
cpp_compiler: clang++
44-
cpp_version: 17
45-
- image: "debian:bookworm"
46-
c_compiler: clang
47-
cpp_compiler: clang++
48-
cpp_version: 20
49-
- image: "debian:bookworm"
50-
build_type: RelWithDebInfo
51-
- image: "debian:bookworm"
52-
c_compiler: clang
53-
cpp_compiler: clang++
54-
CXXFLAGS: -fsanitize=address,undefined -fno-sanitize-recover=all -fno-omit-frame-pointer
55-
LDFLAGS: -fsanitize=address,undefined
56-
- image: "debian:trixie"
57-
CXXFLAGS: -Wno-stringop-overread
5830
- image: "debian:trixie"
5931
cpp_version: 17
60-
CXXFLAGS: -Wno-stringop-overread
6132
- image: "debian:trixie"
6233
cpp_version: 20
63-
CXXFLAGS: -Wno-stringop-overread
34+
- image: "debian:trixie"
35+
cpp_version: 23
6436
- image: "debian:trixie"
6537
c_compiler: clang
6638
cpp_compiler: clang++
@@ -72,40 +44,31 @@ jobs:
7244
c_compiler: clang
7345
cpp_compiler: clang++
7446
cpp_version: 20
47+
- image: "debian:trixie"
48+
c_compiler: clang
49+
cpp_compiler: clang++
50+
cpp_version: 23
7551
- image: "debian:trixie"
7652
build_type: RelWithDebInfo
77-
CXXFLAGS: -Wno-stringop-overread
7853
- image: "debian:trixie"
7954
c_compiler: clang
8055
cpp_compiler: clang++
8156
CXXFLAGS: -fsanitize=address,undefined -fno-sanitize-recover=all -fno-omit-frame-pointer
8257
LDFLAGS: -fsanitize=address,undefined
83-
- image: "debian:testing"
84-
CXXFLAGS: -Wno-stringop-overread -Wno-dangling-reference
8558
- image: "debian:testing"
8659
c_compiler: clang
8760
cpp_compiler: clang++
88-
- image: "debian:experimental"
89-
CXXFLAGS: -Wno-stringop-overread -Wno-dangling-reference
9061
- image: "debian:experimental"
9162
c_compiler: clang
9263
cpp_compiler: clang++
93-
- image: "fedora:40"
94-
CXXFLAGS: -Wno-stringop-overread -Wno-dangling-reference
95-
- image: "fedora:41"
96-
CXXFLAGS: -Wno-stringop-overread -Wno-dangling-reference
97-
- image: "fedora:42"
98-
CXXFLAGS: -Wno-stringop-overread -Wno-dangling-reference
99-
- image: "fedora:43"
100-
CXXFLAGS: -Wno-stringop-overread -Wno-dangling-reference
10164
container:
10265
image: ${{ matrix.image }}
10366
env:
10467
LANG: en_US.UTF-8
10568
BUILD_TYPE: ${{ matrix.build_type }}
10669
CC: ${{ matrix.c_compiler }}
10770
CXX: ${{ matrix.cpp_compiler }}
108-
CXXFLAGS: ${{ matrix.CXXFLAGS }}
71+
CXXFLAGS: -Werror ${{ matrix.CXXFLAGS }}
10972
LDFLAGS: ${{ matrix.LDFLAGS }}
11073
CPP_VERSION: ${{ matrix.cpp_version }}
11174
APT_LISTCHANGES_FRONTEND: none
@@ -170,6 +133,7 @@ jobs:
170133
env:
171134
CC: clang-18
172135
CXX: clang++-18
136+
CXXFLAGS: -Werror
173137
BUILD_TYPE: Dev
174138
steps:
175139
- uses: actions/checkout@v4
@@ -197,6 +161,7 @@ jobs:
197161
env:
198162
CC: clang
199163
CXX: clang++
164+
CXXFLAGS: -Werror
200165
BUILD_TYPE: ${{ matrix.build_type }}
201166
steps:
202167
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)