mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
Merge branch 'master' into Playerbot
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' || '' }} \
|
||||
|
||||
8
.github/workflows/codestyle.yml
vendored
8
.github/workflows/codestyle.yml
vendored
@@ -1,6 +1,10 @@
|
||||
name: Codestyle
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
paths:
|
||||
- src/**
|
||||
- "!README.md"
|
||||
@@ -10,7 +14,7 @@ jobs:
|
||||
triage:
|
||||
runs-on: ubuntu-latest
|
||||
name: C++
|
||||
if: github.repository == 'liyunfan1223/azerothcore-wotlk'
|
||||
if: github.repository == 'liyunfan1223/azerothcore-wotlk' && !github.event.pull_request.draft
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup python
|
||||
@@ -18,7 +22,7 @@ jobs:
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: AzerothCore codestyle
|
||||
run: python ./apps/codestyle/codestyle.py
|
||||
run: python ./apps/codestyle/codestyle-cpp.py
|
||||
- name: C++ Advanced
|
||||
run: |
|
||||
sudo apt update -y
|
||||
|
||||
6
.github/workflows/core-build-nopch.yml
vendored
6
.github/workflows/core-build-nopch.yml
vendored
@@ -32,10 +32,8 @@ jobs:
|
||||
CC: gcc-14
|
||||
CXX: g++-14
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}-${{ matrix.compiler }}-nopch
|
||||
env:
|
||||
COMPILER: ${{ matrix.compiler }}
|
||||
if: github.repository == 'liyunfan1223/azerothcore-wotlk'
|
||||
name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-nopch
|
||||
if: github.repository == 'liyunfan1223/azerothcore-wotlk' && !github.event.pull_request.draft
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/linux-build
|
||||
|
||||
5
.github/workflows/core-build-pch.yml
vendored
5
.github/workflows/core-build-pch.yml
vendored
@@ -4,7 +4,10 @@ on:
|
||||
branches:
|
||||
- 'master'
|
||||
pull_request:
|
||||
types: ['opened', 'synchronize', 'reopened']
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
|
||||
|
||||
22
.github/workflows/core_modules_build.yml
vendored
22
.github/workflows/core_modules_build.yml
vendored
@@ -5,10 +5,19 @@ on:
|
||||
- 'master'
|
||||
pull_request:
|
||||
types:
|
||||
- labeled
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
paths:
|
||||
- 'src/*'
|
||||
- 'src/common/**/*'
|
||||
- 'src/genrev/**/*'
|
||||
- 'src/server/*'
|
||||
- 'src/server/apps/**/*'
|
||||
- 'src/server/database/**/*'
|
||||
- 'src/server/game/**/*'
|
||||
- 'src/server/shared/**/*'
|
||||
- 'src/tools/**/*'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
|
||||
@@ -26,15 +35,7 @@ jobs:
|
||||
CXX: clang++-18
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-nopch-modules
|
||||
if: github.repository == 'liyunfan1223/azerothcore-wotlk'
|
||||
&& !github.event.pull_request.draft
|
||||
&& (
|
||||
github.ref_name == 'master'
|
||||
|| contains(github.event.pull_request.labels.*.name, 'file-cpp'
|
||||
|| github.event.label.name == 'file-cpp'
|
||||
|| contains(github.event.pull_request.labels.*.name, 'run-build')
|
||||
|| github.event.label.name == 'run-build')
|
||||
)
|
||||
if: github.repository == 'liyunfan1223/azerothcore-wotlk' && !github.event.pull_request.draft
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# This script installs a general list of modules to compile with
|
||||
@@ -48,3 +49,4 @@ jobs:
|
||||
CXX: ${{ matrix.compiler.CXX }}
|
||||
modules: true
|
||||
pch: false
|
||||
maxerrors: 0
|
||||
|
||||
2
.github/workflows/docker_build.yml
vendored
2
.github/workflows/docker_build.yml
vendored
@@ -6,9 +6,7 @@ on:
|
||||
pull_request:
|
||||
types:
|
||||
- labeled
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
|
||||
|
||||
2
.github/workflows/pr_labeler.yml
vendored
2
.github/workflows/pr_labeler.yml
vendored
@@ -6,7 +6,7 @@ jobs:
|
||||
triage:
|
||||
runs-on: ubuntu-24.04
|
||||
permissions: write-all
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
14
.github/workflows/sql-codestyle.yml
vendored
14
.github/workflows/sql-codestyle.yml
vendored
@@ -1,6 +1,10 @@
|
||||
name: Codestyle
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
paths:
|
||||
- data/**
|
||||
- "!README.md"
|
||||
@@ -10,8 +14,12 @@ jobs:
|
||||
triage:
|
||||
runs-on: ubuntu-latest
|
||||
name: SQL
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check pending SQL
|
||||
run: source ./apps/ci/ci-pending.sh
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: AzerothCore codestyle
|
||||
run: python ./apps/codestyle/codestyle-sql.py
|
||||
|
||||
2
.github/workflows/tools_build.yml
vendored
2
.github/workflows/tools_build.yml
vendored
@@ -6,8 +6,6 @@ on:
|
||||
pull_request:
|
||||
types:
|
||||
- labeled
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
|
||||
concurrency:
|
||||
|
||||
Reference in New Issue
Block a user