mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
feat(CI/linux-build): introduce option to set maxerrors for compilation (#21022)
This commit is contained in:
9
.github/actions/linux-build/action.yml
vendored
9
.github/actions/linux-build/action.yml
vendored
@@ -26,6 +26,11 @@ inputs:
|
||||
description: Flag to enable or disable PCH
|
||||
required: false
|
||||
type: boolean
|
||||
maxerrors:
|
||||
default: 1
|
||||
description: Max allowed error count before compilation stops
|
||||
required: false
|
||||
type: number
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
@@ -106,8 +111,8 @@ runs:
|
||||
-DCMAKE_BUILD_TYPE="Release" \
|
||||
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
|
||||
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \
|
||||
-DCMAKE_C_FLAGS="-Werror" \
|
||||
-DCMAKE_CXX_FLAGS="-Werror" \
|
||||
-DCMAKE_C_FLAGS="-Werror ${{ startsWith(inputs.cc, 'clang') && '-ferror-limit=' || '-fmax-errors=' }}${{inputs.maxerrors}} " \
|
||||
-DCMAKE_CXX_FLAGS="-Werror ${{ startsWith(inputs.cxx, 'clang') && '-ferror-limit=' || '-fmax-errors=' }}${{inputs.maxerrors}}" \
|
||||
-DBUILD_TESTING="ON" \
|
||||
-DUSE_SCRIPTPCH=${{ inputs.pch == 'true' && 'ON' || '' }} \
|
||||
-DUSE_COREPCH=${{ inputs.pch == 'true' && 'ON' || '' }} \
|
||||
|
||||
1
.github/workflows/core_modules_build.yml
vendored
1
.github/workflows/core_modules_build.yml
vendored
@@ -49,3 +49,4 @@ jobs:
|
||||
CXX: ${{ matrix.compiler.CXX }}
|
||||
modules: true
|
||||
pch: false
|
||||
maxerrors: 0
|
||||
|
||||
Reference in New Issue
Block a user