forked from azerothcore/mod-azerothshard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore. Compatibility with the latest version (azerothcore#24)
* chore. Compatibility with the latest version * ci: add apps/ directory for ci scripts * Update SQL files * Update workflow and upload template * rewrite getf method * Revert "Update workflow and upload template" This reverts commit 7951bea. * Pointer to local variable * update workflow * Revert "Pointer to local variable" This reverts commit 22a6667. * Change const char for std::string * AzthLanguage in modules * fix build error * fix build * fix. sql * fix sql --------- Co-authored-by: Helias <[email protected]>
- Loading branch information
Showing
50 changed files
with
25,394 additions
and
25,352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,46 +2,10 @@ name: core-build | |
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: [clang] | ||
runs-on: ubuntu-20.04 | ||
name: ${{ matrix.compiler }} | ||
env: | ||
COMPILER: ${{ matrix.compiler }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: 'azerothcore/azerothcore-wotlk' | ||
ref: 'master' | ||
submodules: 'recursive' | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
path: 'modules/mod-azerothshard' | ||
- name: Download mod-autobalance # TODO: remove mod-autobalance as a dependency of mod-azerothshard | ||
run: git clone --depth=1 --branch=master https://github.com/azerothcore/mod-autobalance.git modules/mod-autobalance | ||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
path: /home/runner/.ccache | ||
key: ccache:${{ matrix.compiler }}:${{ github.ref }}:${{ github.sha }} | ||
restore-keys: | | ||
ccache:${{ matrix.compiler }}:${{ github.ref }} | ||
ccache:${{ matrix.compiler }} | ||
- name: Configure OS | ||
run: source ./apps/ci/ci-install.sh | ||
env: | ||
CONTINUOUS_INTEGRATION: true | ||
- name: Import db | ||
run: source ./apps/ci/ci-import-db.sh | ||
- name: Build | ||
run: source ./apps/ci/ci-compile.sh | ||
- name: Dry run | ||
run: source ./apps/ci/ci-worldserver-dry-run.sh | ||
# - name: Check startup errors | ||
# run: source ./apps/ci/ci-error-check.sh | ||
uses: azerothcore/reusable-workflows/.github/workflows/core_build_modules.yml@main | ||
with: | ||
module_repo: ${{ github.event.repository.name }} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "Codestyle check script:" | ||
echo | ||
|
||
declare -A singleLineRegexChecks=( | ||
["LOG_.+GetCounter"]="Use ObjectGuid::ToString().c_str() method instead of ObjectGuid::GetCounter() when logging. Check the lines above" | ||
["[[:blank:]]$"]="Remove whitespace at the end of the lines above" | ||
["\t"]="Replace tabs with 4 spaces in the lines above" | ||
) | ||
|
||
for check in ${!singleLineRegexChecks[@]}; do | ||
echo " Checking RegEx: '${check}'" | ||
|
||
if grep -P -r -I -n ${check} src; then | ||
echo | ||
echo "${singleLineRegexChecks[$check]}" | ||
exit 1 | ||
fi | ||
done | ||
|
||
declare -A multiLineRegexChecks=( | ||
["LOG_[^;]+GetCounter"]="Use ObjectGuid::ToString().c_str() method instead of ObjectGuid::GetCounter() when logging. Check the lines above" | ||
["\n\n\n"]="Multiple blank lines detected, keep only one. Check the files above" | ||
) | ||
|
||
for check in ${!multiLineRegexChecks[@]}; do | ||
echo " Checking RegEx: '${check}'" | ||
|
||
if grep -Pzo -r -I ${check} src; then | ||
echo | ||
echo | ||
echo "${multiLineRegexChecks[$check]}" | ||
exit 1 | ||
fi | ||
done | ||
|
||
echo | ||
echo "Everything looks good" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.