Skip to content

Commit

Permalink
Testing, GitHub - Marking warnings as errors #73
Browse files Browse the repository at this point in the history
Windows, Linux builds now starts checking the warning.
  In warning case the job will be failed.
MacOS having too much warnings related with sprintf.
Linux Clang having a problem with Flex and Bison.

TODO: Fix the warnings for MacOS and Linux Clang.
  • Loading branch information
dpasukhi committed Sep 22, 2024
1 parent e599866 commit 495a6a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-linux-gcc-x64-dynamic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
-D CMAKE_C_COMPILER=gcc \
-D CMAKE_CXX_COMPILER=g++ \
-D USE_FREETYPE=OFF \
-D CMAKE_BUILD_TYPE=Release ..
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS="-Werror" \
-D CMAKE_CXX_FLAGS="-Werror" ..
- name: Build OCCT
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-windows-msvc-x64-dynamic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
- name: Configure OCCT
run: |
mkdir build
cd build
cmake -T host=x64 -D USE_FREETYPE=OFF -D BUILD_MODULE_Draw=OFF -D CMAKE_BUILD_TYPE=Release ..
mkdir build
cd build
cmake -T host=x64 -D USE_FREETYPE=OFF -D BUILD_MODULE_Draw=OFF -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_FLAGS="/WX" -D CMAKE_CXX_FLAGS="/WX" ..
- name: Build OCCT
run: |
cd build
cmake --build . --config Release -- /m
cd build
cmake --build . --config Release -- /m

0 comments on commit 495a6a6

Please sign in to comment.