Skip to content

Commit 7fecda0

Browse files
authored
Maintenance update
Update.
2 parents e144326 + d3ea3c5 commit 7fecda0

File tree

95 files changed

+2206
-804
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+2206
-804
lines changed

.github/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ You can check the [authors](https://github.com/azerothcore/azerothcore-wotlk/blo
8282

8383
## License
8484

85-
- The AzerothCore source code is released under the [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
85+
- The new AzerothCore source components are released under the [GNU AGPL v3](https://www.gnu.org/licenses/agpl-3.0.en.html)
86+
- The old sources based on MaNGOS/TrinityCore are released under the [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
8687

8788
It's important to note that AzerothCore is not an official Blizzard Entertainment product, and it is not affiliated with or endorsed by World of Warcraft or Blizzard Entertainment. AzerothCore does not in any case sponsor nor support illegal public servers. If you use this project to run an illegal public server and not for testing and learning it is your own personal choice.
8889

.github/workflows/codestyle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
triage:
1515
runs-on: ubuntu-latest
1616
name: C++
17-
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
17+
if: github.repository == 'mod-playerbots/azerothcore-wotlk' && !github.event.pull_request.draft
1818
steps:
1919
- uses: actions/checkout@v4
2020
- name: Setup python

.github/workflows/core-build-nopch.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
name: nopch-build
2+
23
on:
34
push:
45
branches:
56
- 'master'
7+
- 'test-staging'
68
pull_request:
79
types:
810
- opened
911
- reopened
1012
- synchronize
1113

1214
concurrency:
13-
# One concurrency group per workflow + ref.
14-
#
15-
# - PRs use `refs/pull/<PR_NUMBER>/merge`, so new commits cancel older
16-
# in-progress runs for the same PR.
17-
# - When a PR is merged, a push to the target branch starts a new group,
18-
# canceling any still-running PR CI.
19-
# - Branch pushes are isolated by ref.
2015
group: ${{ github.workflow }}-${{ github.ref }}
2116
cancel-in-progress: true
2217

@@ -44,11 +39,12 @@ jobs:
4439
CXX: g++-14
4540
runs-on: ${{ matrix.os }}
4641
name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-nopch
47-
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
42+
if: github.repository == 'mod-playerbots/azerothcore-wotlk' && !github.event.pull_request.draft
4843
steps:
4944
- uses: actions/checkout@v4
5045
- uses: ./.github/actions/linux-build
5146
with:
5247
CC: ${{ matrix.compiler.CC }}
5348
CXX: ${{ matrix.compiler.CXX }}
5449
pch: false
50+
modules: true # optional: include module compilation if desired

.github/workflows/core-build-pch.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
name: pch-build
2+
23
on:
34
push:
45
branches:
56
- 'master'
7+
- 'test-staging'
68
pull_request:
79
types:
810
- opened
911
- reopened
1012
- synchronize
1113

1214
concurrency:
13-
# One concurrency group per workflow + ref.
14-
#
15-
# - PRs use `refs/pull/<PR_NUMBER>/merge`, so new commits cancel older
16-
# in-progress runs for the same PR.
17-
# - When a PR is merged, a push to the target branch starts a new group,
18-
# canceling any still-running PR CI.
19-
# - Branch pushes are isolated by ref.
2015
group: ${{ github.workflow }}-${{ github.ref }}
2116
cancel-in-progress: true
2217

@@ -40,11 +35,12 @@ jobs:
4035
CXX: clang++-18
4136
runs-on: ${{ matrix.os }}
4237
name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-pch
43-
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
38+
if: github.repository == 'mod-playerbots/azerothcore-wotlk' && !github.event.pull_request.draft
4439
steps:
4540
- uses: actions/checkout@v4
4641
- uses: ./.github/actions/linux-build
4742
with:
4843
CC: ${{ matrix.compiler.CC }}
4944
CXX: ${{ matrix.compiler.CXX }}
5045
pch: true
46+
modules: true # optional: include modules in PCH build
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
2+
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
3+
name: ubuntu-build
4+
5+
on:
6+
push:
7+
branches: [ "Playerbot", "test-staging" ]
8+
pull_request:
9+
branches: [ "Playerbot", "test-staging" ]
10+
11+
jobs:
12+
build:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- os: ubuntu-22.04
18+
c_compiler: clang
19+
cpp_compiler: clang++
20+
build_type: Release
21+
- os: ubuntu-22.04
22+
c_compiler: gcc
23+
cpp_compiler: g++
24+
build_type: Release
25+
- os: ubuntu-24.04
26+
c_compiler: gcc
27+
cpp_compiler: g++
28+
build_type: Release
29+
runs-on: ${{ matrix.os }}
30+
name: ${{ matrix.os }}-${{ matrix.cpp_compiler }}
31+
32+
steps:
33+
- name: Checkout AzerothCore
34+
uses: actions/checkout@v3
35+
36+
- name: Set reusable strings
37+
id: strings
38+
shell: bash
39+
run: |
40+
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
41+
42+
- name: Checkout Playerbot Module
43+
uses: actions/checkout@v3
44+
with:
45+
repository: mod-playerbots/mod-playerbots
46+
# Map AC branch → PB branch
47+
ref: ${{ github.ref_name == 'Playerbot' && 'master' || 'test-staging' }}
48+
path: modules/mod-playerbots
49+
50+
- name: Install Requirements
51+
run: |
52+
sudo apt-get update
53+
sudo apt-get install -y git cmake make gcc g++ clang \
54+
libmysqlclient-dev libssl-dev libbz2-dev \
55+
libreadline-dev libncurses-dev mysql-server libboost-all-dev
56+
57+
- name: Configure CMake
58+
run: |
59+
cmake -B ${{ steps.strings.outputs.build-output-dir }} \
60+
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \
61+
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
62+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
63+
-S ${{ github.workspace }}
64+
65+
- name: Build
66+
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

.github/workflows/core-build.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
2+
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
3+
name: ubuntu-build
4+
5+
on:
6+
push:
7+
branches: [ "Playerbot", "test-staging" ]
8+
pull_request:
9+
branches: [ "Playerbot", "test-staging" ]
10+
11+
jobs:
12+
build:
13+
strategy:
14+
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
15+
fail-fast: false
16+
matrix:
17+
# the result of the matrix will be the combination of all attributes, so we get os*compiler builds
18+
include:
19+
- os: ubuntu-22.04
20+
c_compiler: clang
21+
cpp_compiler: clang++
22+
build_type: Release
23+
- os: ubuntu-22.04
24+
c_compiler: gcc
25+
cpp_compiler: g++
26+
build_type: Release
27+
- os: ubuntu-24.04
28+
c_compiler: gcc
29+
cpp_compiler: g++
30+
build_type: Release
31+
32+
runs-on: ${{ matrix.os }}
33+
name: ${{ matrix.os }}-${{ matrix.cpp_compiler }}
34+
35+
steps:
36+
- name: Checkout AzerothCore
37+
uses: actions/checkout@v3
38+
39+
- name: Set reusable strings
40+
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
41+
id: strings
42+
shell: bash
43+
run: |
44+
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
45+
46+
# - name: Clone Playerbot Module
47+
# run: git clone --depth=1 --branch=master https://github.com/mod-playerbots/mod-playerbots.git modules/mod-playerbots
48+
49+
# - name: Checkout Playerbot Module
50+
# uses: actions/checkout@v3
51+
# with:
52+
# repository: 'mod-playerbots/mod-playerbots'
53+
# path: 'modules/mod-playerbots'
54+
55+
- name: Install Requirements
56+
run: sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libboost-all-dev
57+
58+
# - name: Cache
59+
# uses: actions/cache@v3
60+
# with:
61+
# path: var/ccache
62+
# key: ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.modules }}-modules:${{ github.ref }}:${{ github.sha }}
63+
# restore-keys: |
64+
# ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.modules }}-modules:${{ github.ref }}
65+
# ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.modules }}-modules
66+
67+
# - name: Configure OS
68+
# run: source ./acore.sh install-deps
69+
# env:
70+
# CONTINUOUS_INTEGRATION: true
71+
72+
# - name: Create conf/config.sh
73+
# run: source ./apps/ci/ci-conf-core.sh
74+
75+
# - name: Process pending sql
76+
# run: bash bin/acore-db-pendings
77+
78+
# - name: Build
79+
# run: source ./apps/ci/ci-compile.sh
80+
81+
- name: Configure CMake
82+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
83+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
84+
run: >
85+
cmake -B ${{ steps.strings.outputs.build-output-dir }}
86+
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
87+
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
88+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
89+
-S ${{ github.workspace }}
90+
91+
- name: Build
92+
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
93+
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
94+
95+
# - name: Test
96+
# working-directory: ${{ steps.strings.outputs.build-output-dir }}
97+
# # Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
98+
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
99+
# run: ctest --build-config ${{ matrix.build_type }}

.github/workflows/core_modules_build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- 'master'
6+
- 'test-staging'
67
pull_request:
78
types:
89
- opened
@@ -46,7 +47,7 @@ jobs:
4647
CXX: clang++-18
4748
runs-on: ${{ matrix.os }}
4849
name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-nopch-modules
49-
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
50+
if: github.repository == 'mod-playerbots/azerothcore-wotlk' && !github.event.pull_request.draft
5051
steps:
5152
- uses: actions/checkout@v4
5253
# This script installs a general list of modules to compile with

.github/workflows/dashboard-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- 'master'
11+
- 'test-staging'
1112
pull_request:
1213
types:
1314
- opened

.github/workflows/docker_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ env:
2323
COMPOSE_DOCKER_CLI_BUILD: 1
2424
DOCKER_BUILDKIT: 1
2525
RUNNING_ON_PRIMARY_BRANCH: |
26-
${{ (github.repository == 'azerothcore/azerothcore-wotlk' && github.ref_name == 'master') && 'true' || 'false' }}
26+
${{ (github.repository == 'mod-playerbots/azerothcore-wotlk' && github.ref_name == 'master') && 'true' || 'false' }}
2727
2828
jobs:
2929
build-containers:
3030
runs-on: "ubuntu-latest"
3131
if: |
32-
github.repository == 'azerothcore/azerothcore-wotlk'
32+
github.repository == 'mod-playerbots/azerothcore-wotlk'
3333
&& !github.event.pull_request.draft
3434
&& (github.ref_name == 'master' || contains(github.event.pull_request.labels.*.name, 'run-build') || github.event.label.name == 'run-build')
3535
steps:

.github/workflows/import_pending.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,41 @@ on:
33
push:
44
branches:
55
- master
6+
- test-staging # add this if you want pending SQL imported on this branch too
67

78
jobs:
89
import-pending:
910
strategy:
1011
fail-fast: false
1112
runs-on: ubuntu-24.04
12-
permissions: write-all
13+
permissions:
14+
contents: write # 'write-all' is not a valid permission, should specify what is needed
1315
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
1416
steps:
1517
- uses: actions/checkout@v4
1618
with:
1719
persist-credentials: false
18-
# If we're fetching all the history in a later step it makes sense to
19-
# pre-load it now
2020
fetch-depth: 0
2121
ref: ${{ github.ref_name }}
2222

2323
- uses: denoland/setup-deno@v1
2424
with:
25-
# Specifies latest 1.x
2625
deno-version: "~1.0"
2726

2827
- name: Import and commit pending sql
2928
run: |
3029
git config --local user.email "github-actions[bot]@users.noreply.github.com"
3130
git config --local user.name "github-actions[bot]"
32-
# Get the latest changes from git
3331
git pull --rebase origin "${{ github.ref_name }}"
3432
bash bin/acore-db-pendings
3533
deno run --allow-all --unstable apps/ci/ci-pending-changelogs.ts
3634
git add -A .
3735
git commit -am "chore(DB): import pending files" -m "Referenced commit(s): ${GITHUB_SHA}" || true
3836
env:
39-
# Noting that the branch name can only be master, as per the event
40-
# triggering this action
4137
BRANCH: ${{ github.ref_name }}
4238

4339
- name: Push changes
4440
uses: ad-m/github-push-action@master
4541
with:
4642
github_token: ${{ secrets.AC_GITHUB_TOKEN }}
47-
# Noting that the branch name can only be master, as per the event
48-
# triggering this action
49-
branch: ${{ github.ref_name }}
43+
branch: ${{ github.ref_name }}

0 commit comments

Comments
 (0)