Skip to content

Commit f2dc578

Browse files
committed
CI: Fail on any warnings with clang 18
1 parent d3fee42 commit f2dc578

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,10 @@ jobs:
330330
container_suffix: "-bullseye"
331331
- clang: 18
332332
std: 20
333+
cxx_flags: "-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls"
333334
container_suffix: "-bookworm"
334335

335-
name: "🐍 3 • Clang ${{ matrix.clang }} • C++${{ matrix.std }} • x64"
336+
name: "🐍 3 • Clang ${{ matrix.clang }} • C++${{ matrix.std }} • x64${{ matrix.cxx_flags && ' • cxx_flags' || '' }}"
336337
container: "silkeh/clang:${{ matrix.clang }}${{ matrix.container_suffix }}"
337338

338339
steps:
@@ -348,6 +349,7 @@ jobs:
348349
-DPYBIND11_WERROR=ON
349350
-DDOWNLOAD_CATCH=ON
350351
-DCMAKE_CXX_STANDARD=${{ matrix.std }}
352+
-DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}"
351353
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
352354
353355
- name: Build

0 commit comments

Comments
 (0)