First Commit
This commit is contained in:
36
modules/mod-playerbots/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
36
modules/mod-playerbots/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Bug Description**
|
||||
A clear and concise description of what the bug is. If the bug is a crash, a crash log must be posted or the issue will be removed.
|
||||
|
||||
**Commit Hash**
|
||||
The hash of the current commit.
|
||||
|
||||
**How To Reproduce Bug**
|
||||
Detailed steps to reproduce the behavior.
|
||||
|
||||
**Expected Behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Modules**
|
||||
Please list all modules used as many are known to cause conflicts with Playerbots.
|
||||
|
||||
**Playerbot Settings**
|
||||
Number of bots, scaling settings, etc if performance related.
|
||||
|
||||
**System**
|
||||
OS: [e.g. Windows, Linux]
|
||||
Hardware: [e.g. CPU if performance related]
|
||||
|
||||
**Additional Context**
|
||||
Add any other context about the problem here.
|
||||
20
modules/mod-playerbots/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
modules/mod-playerbots/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
34
modules/mod-playerbots/.github/workflows/code_style.yml
vendored
Normal file
34
modules/mod-playerbots/.github/workflows/code_style.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Codestyle
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
concurrency:
|
||||
group: "codestyle-${{ github.event.pull_request.number }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: "clang-format-always-success"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Playerbot Module
|
||||
uses: actions/checkout@v4
|
||||
- name: Install clang-format
|
||||
run: sudo apt-get install clang-format -y
|
||||
|
||||
- name: Run clang-format
|
||||
run: |
|
||||
# Find all C/C++ source files
|
||||
FILES=$(find . -name "*.h" -o -name "*.cpp" -o -name "*.c" -o -name "*.hpp")
|
||||
|
||||
# Run clang-format in dry-run mode to check for formatting issues
|
||||
clang-format -i $FILES
|
||||
|
||||
# Check if there are any formatting changes
|
||||
git diff --exit-code
|
||||
shell: bash
|
||||
continue-on-error: true
|
||||
78
modules/mod-playerbots/.github/workflows/core_build.yml
vendored
Normal file
78
modules/mod-playerbots/.github/workflows/core_build.yml
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
name: ubuntu-build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
concurrency:
|
||||
group: "core-build-${{ github.event.pull_request.number }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
# 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.
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# the result of the matrix will be the combination of all attributes, so we get os*compiler builds
|
||||
include:
|
||||
- os: ubuntu-22.04
|
||||
c_compiler: clang
|
||||
cpp_compiler: clang++
|
||||
build_type: Release
|
||||
- os: ubuntu-22.04
|
||||
c_compiler: gcc
|
||||
cpp_compiler: g++
|
||||
build_type: Release
|
||||
- os: ubuntu-24.04
|
||||
c_compiler: gcc
|
||||
cpp_compiler: g++
|
||||
build_type: Release
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}-${{ matrix.cpp_compiler }}
|
||||
|
||||
steps:
|
||||
- name: Checkout AzerothCore
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: 'liyunfan1223/azerothcore-wotlk'
|
||||
ref: 'Playerbot'
|
||||
|
||||
- name: Set reusable strings
|
||||
id: strings
|
||||
shell: bash
|
||||
run: |
|
||||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Checkout Playerbot Module
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: 'liyunfan1223/mod-playerbots'
|
||||
path: 'modules/mod-playerbots'
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ github.workspace }}/var/ccache
|
||||
key: ccache:${{ matrix.os }}:${{ matrix.c_compiler }}:${{ github.ref }}:${{ github.sha }}
|
||||
restore-keys: |
|
||||
ccache:${{ matrix.os }}:${{ matrix.c_compiler }}:${{ github.ref }}
|
||||
ccache:${{ matrix.os }}:${{ matrix.c_compiler }}
|
||||
ccache:${{ matrix.os }}
|
||||
|
||||
- name: Install Requirements
|
||||
run: sudo apt-get update && sudo apt-get install ccache git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libboost-all-dev
|
||||
|
||||
- name: Configure CMake
|
||||
run: >
|
||||
cmake -B ${{ steps.strings.outputs.build-output-dir }}
|
||||
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
|
||||
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
|
||||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
|
||||
-S ${{ github.workspace }}
|
||||
|
||||
- name: Build
|
||||
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
|
||||
45
modules/mod-playerbots/.github/workflows/macos_build.yml
vendored
Normal file
45
modules/mod-playerbots/.github/workflows/macos_build.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: macos-build
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
concurrency:
|
||||
group: "macos-build-${{ github.event.pull_request.number }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
macos-build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- macos-14
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout AzerothCore
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'liyunfan1223/azerothcore-wotlk'
|
||||
ref: 'Playerbot'
|
||||
- name: Checkout Playerbot Module
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'liyunfan1223/mod-playerbots'
|
||||
path: 'modules/mod-playerbots'
|
||||
- name: Cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/Library/Caches/ccache
|
||||
key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ github.sha }}
|
||||
restore-keys: |
|
||||
ccache:${{ matrix.os }}:${{ github.ref }}
|
||||
ccache:${{ matrix.os }}
|
||||
- name: Install latest bash
|
||||
run: brew install bash
|
||||
- name: Configure OS
|
||||
run: source ./acore.sh install-deps
|
||||
- name: Build
|
||||
run: source ./apps/ci/mac/ci-compile.sh
|
||||
45
modules/mod-playerbots/.github/workflows/windows_build.yml
vendored
Normal file
45
modules/mod-playerbots/.github/workflows/windows_build.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: windows-build
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
concurrency:
|
||||
group: "windows-build-${{ github.event.pull_request.number }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
windows-build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}
|
||||
env:
|
||||
BOOST_ROOT: C:\local\boost_1_82_0
|
||||
steps:
|
||||
- name: Checkout AzerothCore
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: 'liyunfan1223/azerothcore-wotlk'
|
||||
ref: 'Playerbot'
|
||||
- name: Checkout Playerbot Module
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: 'liyunfan1223/mod-playerbots'
|
||||
path: 'modules/mod-playerbots'
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2.13
|
||||
- name: Configure OS
|
||||
shell: bash
|
||||
env:
|
||||
CONTINUOUS_INTEGRATION: true
|
||||
run: |
|
||||
./acore.sh install-deps
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
export CTOOLS_BUILD=all
|
||||
./acore.sh compiler build
|
||||
Reference in New Issue
Block a user