diff --git a/.github/workflows/build-linux-gcc-x64-dynamic.yml b/.github/workflows/build-linux-gcc-x64-dynamic.yml index 53bd82f65c..d23643ccb5 100644 --- a/.github/workflows/build-linux-gcc-x64-dynamic.yml +++ b/.github/workflows/build-linux-gcc-x64-dynamic.yml @@ -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: | diff --git a/.github/workflows/build-windows-msvc-x64-dynamic.yml b/.github/workflows/build-windows-msvc-x64-dynamic.yml index 4e4e8a9922..7cce4fd086 100644 --- a/.github/workflows/build-windows-msvc-x64-dynamic.yml +++ b/.github/workflows/build-windows-msvc-x64-dynamic.yml @@ -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