@@ -199,7 +199,7 @@ jobs:
199199 run : |
200200 uv pip install --python=python --system setuptools
201201 pytest tests/extra_setuptools
202- if : " !( matrix.runs-on == 'windows-2022') "
202+ if : matrix.runs-on != 'windows-2022'
203203
204204 manylinux :
205205 name : Manylinux on 🐍 3.13t • GIL
@@ -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
@@ -491,9 +493,9 @@ jobs:
491493 - { gcc: 9, std: 20 }
492494 - { gcc: 10, std: 17 }
493495 - { gcc: 10, std: 20 }
494- - { gcc: 13, std: 20 }
496+ - { gcc: 13, std: 20, cxx_flags: "-Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls" }
495497
496- name : " 🐍 3 • GCC ${{ matrix.gcc }} • C++${{ matrix.std }}• x64"
498+ name : " 🐍 3 • GCC ${{ matrix.gcc }} • C++${{ matrix.std }} • x64${{ matrix.cxx_flags && ' • cxx_flags' || '' }} "
497499 container : " gcc:${{ matrix.gcc }}"
498500
499501 steps :
@@ -515,6 +517,7 @@ jobs:
515517 -DPYBIND11_WERROR=ON
516518 -DDOWNLOAD_CATCH=ON
517519 -DCMAKE_CXX_STANDARD=${{ matrix.std }}
520+ -DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}"
518521 -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
519522
520523 - name : Build
0 commit comments