Skip to content

Commit

Permalink
Add warnings flags to CMake build
Browse files Browse the repository at this point in the history
  • Loading branch information
DownerCase committed Jan 13, 2025
1 parent 1f213e1 commit 9de74fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ jobs:
- uses: actions/checkout@v4

- name: Configure
run: cmake -S . -B build -G Ninja -Werror=dev -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DCMAKE_TOOLCHAIN_FILE=project/gcc.cmake
run: 'cmake -S . -B build -G Ninja -Werror=dev
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON
-DCMAKE_TOOLCHAIN_FILE=project/gcc.cmake
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Wconversion"
'

- name: Build
run: cmake --build ./build
Expand Down

0 comments on commit 9de74fd

Please sign in to comment.