diff options
| author | Shauren <shauren.trinity@gmail.com> | 2024-09-20 13:34:53 +0200 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2024-09-21 05:50:20 +0200 |
| commit | f580ac2cde4ffd55da600d8de8f8109f84ef5546 (patch) | |
| tree | 93f940af8d194c4de7edce2ddbac648c59bda856 /.github/workflows | |
| parent | 70d2b3b34d516a4b7f98218a60da372900f53d1e (diff) | |
CI: Migrate compile flags environment variables to new cmake option WITH_WARNINGS_AS_ERRORS
(cherry picked from commit 4d59558c5604d29807a37ededd7b1ec02d8d9a9e)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/gcc-build.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/macos-arm-build.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/win-x64-build.yml | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/.github/workflows/gcc-build.yml b/.github/workflows/gcc-build.yml index 2d51498a0dd..6f1765801cf 100644 --- a/.github/workflows/gcc-build.yml +++ b/.github/workflows/gcc-build.yml @@ -20,12 +20,10 @@ jobs: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 - name: Setup env: - CFLAGS: -Werror - CXXFLAGS: -Werror CMAKE_BUILD_TYPE: Debug run: > cmake -S ${{ github.workspace }} -B ${{ steps.strings.outputs.build-output-dir }} - -DWITH_WARNINGS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DSCRIPTS=dynamic -DSERVERS=1 -DNOJEM=0 + -DWITH_WARNINGS=1 -DWITH_WARNINGS_AS_ERRORS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DSCRIPTS=dynamic -DSERVERS=1 -DNOJEM=0 -DCMAKE_C_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_CXX_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_INSTALL_PREFIX=check_install -DBUILD_TESTING=1 - name: Build diff --git a/.github/workflows/macos-arm-build.yml b/.github/workflows/macos-arm-build.yml index fb353fd5ba3..b6497abc81a 100644 --- a/.github/workflows/macos-arm-build.yml +++ b/.github/workflows/macos-arm-build.yml @@ -37,12 +37,10 @@ jobs: - name: Configure CMake env: - CFLAGS: -Werror - CXXFLAGS: -Werror CMAKE_BUILD_TYPE: Debug run: > cmake -GNinja -B ${{ steps.strings.outputs.build-output-dir }} - -DWITH_WARNINGS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DSCRIPTS=static -DSERVERS=1 -DBUILD_TESTING=1 + -DWITH_WARNINGS=1 -DWITH_WARNINGS_AS_ERRORS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DSCRIPTS=static -DSERVERS=1 -DBUILD_TESTING=1 -DCMAKE_C_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_CXX_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_INSTALL_PREFIX=check_install -S ${{ github.workspace }} diff --git a/.github/workflows/win-x64-build.yml b/.github/workflows/win-x64-build.yml index a4df60cb65f..5f63fd1b266 100644 --- a/.github/workflows/win-x64-build.yml +++ b/.github/workflows/win-x64-build.yml @@ -71,12 +71,10 @@ jobs: - name: Configure CMake env: - CFLAGS: /WX - CXXFLAGS: /WX BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} run: > cmake -GNinja -S ${{ github.workspace }} -B ${{ steps.strings.outputs.build-output-dir }} - -DTOOLS=ON + -DWITH_WARNINGS_AS_ERRORS=ON -DTOOLS=ON - name: Build run: | |
