Update vendored mod-playerbots to ba46fcd
This commit is contained in:
@@ -2,6 +2,7 @@ name: Enforce test-staging → master
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, edited]
|
||||
branches:
|
||||
- master
|
||||
- test-staging
|
||||
|
||||
+14
-4
@@ -6,10 +6,6 @@ on:
|
||||
- reopened
|
||||
- synchronize
|
||||
- ready_for_review
|
||||
paths:
|
||||
- src/**
|
||||
- "!README.md"
|
||||
- "!docs/**"
|
||||
|
||||
concurrency:
|
||||
group: "codestyle-cppcheck-${{ github.event.pull_request.number }}"
|
||||
@@ -22,13 +18,27 @@ jobs:
|
||||
if: github.event.pull_request.draft == false
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: dorny/paths-filter@v3
|
||||
id: filter
|
||||
with:
|
||||
filters: |
|
||||
cpp:
|
||||
- 'src/**'
|
||||
- '!README.md'
|
||||
- '!docs/**'
|
||||
|
||||
- name: Setup python
|
||||
if: steps.filter.outputs.cpp == 'true'
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: AzerothCore codestyle
|
||||
if: steps.filter.outputs.cpp == 'true'
|
||||
run: python ./apps/codestyle/codestyle-cpp.py
|
||||
|
||||
- name: C++ Advanced
|
||||
if: steps.filter.outputs.cpp == 'true'
|
||||
run: |
|
||||
sudo apt update -y
|
||||
sudo apt install -y cppcheck
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: 'mod-playerbots/azerothcore-wotlk'
|
||||
ref: 'Playerbot'
|
||||
ref: ${{ (github.base_ref || github.ref_name) == 'test-staging' && 'test-staging' || 'Playerbot' }}
|
||||
|
||||
- name: Set reusable strings
|
||||
id: strings
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
name: Label translation PRs
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
label-translation:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout base branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.base.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fetch PR head and generate diff
|
||||
run: |
|
||||
git fetch origin refs/pull/${{ github.event.pull_request.number }}/head
|
||||
git diff ${{ github.event.pull_request.base.sha }}...FETCH_HEAD > pr.diff
|
||||
|
||||
- name: Detect ai_playerbot_texts inserts
|
||||
id: detect
|
||||
run: |
|
||||
if grep -E '^\+.*INSERT[[:space:]]+INTO[[:space:]]+`?ai_playerbot_texts`?' pr.diff; then
|
||||
echo "has_translation=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "has_translation=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Add label
|
||||
if: steps.detect.outputs.has_translation == 'true'
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh pr edit ${{ github.event.pull_request.number }} \
|
||||
--repo ${{ github.repository }} \
|
||||
--add-label "Added translation"
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'mod-playerbots/azerothcore-wotlk'
|
||||
ref: 'Playerbot'
|
||||
ref: ${{ (github.base_ref || github.ref_name) == 'test-staging' && 'test-staging' || 'Playerbot' }}
|
||||
- name: Checkout Playerbot Module
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
+124
-15
@@ -1,4 +1,5 @@
|
||||
name: windows-build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master", "test-staging" ]
|
||||
@@ -6,7 +7,7 @@ on:
|
||||
branches: [ "master", "test-staging" ]
|
||||
|
||||
concurrency:
|
||||
group: "windows-build-${{ github.event.pull_request.number }}"
|
||||
group: "windows-build-${{ github.event.pull_request.number || github.ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
@@ -14,36 +15,144 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-latest]
|
||||
os: [windows-2022]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}
|
||||
|
||||
env:
|
||||
BOOST_ROOT: C:\local\boost_1_82_0
|
||||
BOOST_ROOT: C:\local\boost_1_87_0
|
||||
CMAKE_GENERATOR: Ninja
|
||||
CTOOLS_BUILD: all
|
||||
|
||||
steps:
|
||||
- name: Checkout AzerothCore
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'mod-playerbots/azerothcore-wotlk'
|
||||
ref: 'Playerbot'
|
||||
path: 'ac'
|
||||
ref: ${{ (github.base_ref || github.ref_name) == 'test-staging' && 'test-staging' || 'Playerbot' }}
|
||||
path: a
|
||||
|
||||
- name: Checkout Playerbot Module
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'mod-playerbots/mod-playerbots'
|
||||
#path: 'modules/mod-playerbots'
|
||||
path: ac/modules/mod-playerbots
|
||||
path: a/modules/mod-playerbots
|
||||
|
||||
- name: Move source tree to short path
|
||||
shell: powershell
|
||||
run: |
|
||||
if (Test-Path C:\ac) {
|
||||
Remove-Item C:\ac -Recurse -Force
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Path C:\ac | Out-Null
|
||||
|
||||
robocopy "${{ github.workspace }}\a" "C:\ac" /MIR /NFL /NDL /NJH /NJS /NP
|
||||
|
||||
if ($LASTEXITCODE -le 7) {
|
||||
exit 0
|
||||
}
|
||||
|
||||
exit $LASTEXITCODE
|
||||
|
||||
- name: Install Boost and Ninja
|
||||
shell: powershell
|
||||
run: |
|
||||
choco install ninja -y --no-progress
|
||||
choco install boost-msvc-14.3 --version=1.87.0 -y --no-progress
|
||||
|
||||
- name: Prepare OpenSSL from runner image
|
||||
shell: powershell
|
||||
run: |
|
||||
$candidates = @(
|
||||
"C:\Program Files\OpenSSL",
|
||||
"C:\Program Files\OpenSSL-Win64"
|
||||
)
|
||||
|
||||
$opensslRoot = $null
|
||||
|
||||
foreach ($candidate in $candidates) {
|
||||
if ((Test-Path "$candidate\bin\openssl.exe") -and (Test-Path "$candidate\include\openssl\ssl.h")) {
|
||||
$opensslRoot = $candidate
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if (-not $opensslRoot) {
|
||||
Write-Host "OpenSSL candidates checked:"
|
||||
$candidates | ForEach-Object { Write-Host " - $_" }
|
||||
throw "OpenSSL development files not found on runner image"
|
||||
}
|
||||
|
||||
if (Test-Path C:\openssl) {
|
||||
Remove-Item C:\openssl -Recurse -Force
|
||||
}
|
||||
|
||||
New-Item -ItemType Junction -Path C:\openssl -Target $opensslRoot | Out-Null
|
||||
|
||||
"OPENSSL_ROOT_DIR=C:\openssl" >> $env:GITHUB_ENV
|
||||
"OPENSSL_DIR=C:\openssl" >> $env:GITHUB_ENV
|
||||
"PATH=C:\openssl\bin;$env:PATH" >> $env:GITHUB_ENV
|
||||
|
||||
C:\openssl\bin\openssl.exe version
|
||||
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2.13
|
||||
- name: Configure OS
|
||||
|
||||
- name: Create AzerothCore CI config
|
||||
shell: bash
|
||||
working-directory: ac
|
||||
env:
|
||||
CONTINUOUS_INTEGRATION: true
|
||||
working-directory: C:\ac
|
||||
run: |
|
||||
./acore.sh install-deps
|
||||
mkdir -p conf
|
||||
|
||||
cat > conf/config.sh <<'EOF'
|
||||
CCOMPILERC="cl"
|
||||
CCOMPILERCXX="cl"
|
||||
|
||||
CTYPE="Release"
|
||||
CSCRIPTS="static"
|
||||
CMODULES="static"
|
||||
CTOOLS_BUILD="all"
|
||||
|
||||
CCUSTOMOPTIONS="-DBOOST_ROOT=C:/local/boost_1_87_0 -DOPENSSL_ROOT_DIR=C:/openssl -DOPENSSL_USE_STATIC_LIBS=FALSE -DCMAKE_RC_COMPILER=rc -DCMAKE_NINJA_FORCE_RESPONSE_FILE=ON -DCMAKE_NINJA_CMCLDEPS_RC=OFF -DCMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS=ON -DCMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS=ON -DCMAKE_C_USE_RESPONSE_FILE_FOR_INCLUDES=ON -DCMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES=ON -DCMAKE_C_USE_RESPONSE_FILE_FOR_LIBRARIES=ON -DCMAKE_CXX_USE_RESPONSE_FILE_FOR_LIBRARIES=ON"
|
||||
EOF
|
||||
|
||||
cat conf/config.sh
|
||||
|
||||
- name: Setup MSVC
|
||||
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
|
||||
with:
|
||||
arch: x64
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
working-directory: ac
|
||||
working-directory: C:\ac
|
||||
run: |
|
||||
export CTOOLS_BUILD=all
|
||||
export CMAKE_GENERATOR=Ninja
|
||||
|
||||
export CC=cl
|
||||
export CXX=cl
|
||||
export RC=rc
|
||||
|
||||
cmake --version
|
||||
ninja --version
|
||||
|
||||
echo "CMAKE_GENERATOR=$CMAKE_GENERATOR"
|
||||
echo "CC=$CC"
|
||||
echo "CXX=$CXX"
|
||||
echo "BOOST_ROOT=$BOOST_ROOT"
|
||||
echo "OPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR"
|
||||
|
||||
which cl || true
|
||||
which rc || true
|
||||
which openssl || true
|
||||
|
||||
cl || true
|
||||
rc || true
|
||||
openssl version || true
|
||||
|
||||
rm -rf var/build/obj
|
||||
|
||||
./acore.sh compiler build
|
||||
|
||||
Reference in New Issue
Block a user