mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
Added test-staging
This commit is contained in:
4
.github/workflows/core-build-nopch.yml
vendored
4
.github/workflows/core-build-nopch.yml
vendored
@@ -1,8 +1,10 @@
|
|||||||
name: nopch-build
|
name: nopch-build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
|
- 'test-staging'
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
@@ -51,4 +53,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
CC: ${{ matrix.compiler.CC }}
|
CC: ${{ matrix.compiler.CC }}
|
||||||
CXX: ${{ matrix.compiler.CXX }}
|
CXX: ${{ matrix.compiler.CXX }}
|
||||||
pch: false
|
pch: false
|
||||||
4
.github/workflows/core-build-pch.yml
vendored
4
.github/workflows/core-build-pch.yml
vendored
@@ -1,8 +1,10 @@
|
|||||||
name: pch-build
|
name: pch-build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
|
- 'test-staging'
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
@@ -49,4 +51,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
CC: ${{ matrix.compiler.CC }}
|
CC: ${{ matrix.compiler.CC }}
|
||||||
CXX: ${{ matrix.compiler.CXX }}
|
CXX: ${{ matrix.compiler.CXX }}
|
||||||
pch: true
|
pch: true
|
||||||
52
.github/workflows/core-build-playerbots.yml
vendored
52
.github/workflows/core-build-playerbots.yml
vendored
@@ -4,17 +4,15 @@ name: ubuntu-build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "Playerbot" ]
|
branches: [ "Playerbot", "test-staging" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "Playerbot" ]
|
branches: [ "Playerbot", "test-staging" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
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
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# the result of the matrix will be the combination of all attributes, so we get os*compiler builds
|
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
c_compiler: clang
|
c_compiler: clang
|
||||||
@@ -37,51 +35,22 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set reusable strings
|
- name: Set reusable strings
|
||||||
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
|
|
||||||
id: strings
|
id: strings
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
|
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
# - name: Clone Playerbot Module
|
|
||||||
# run: git clone --depth=1 --branch=master https://github.com/mod-playerbots/mod-playerbots.git modules/mod-playerbots
|
|
||||||
|
|
||||||
- name: Checkout Playerbot Module
|
- name: Checkout Playerbot Module
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: 'mod-playerbots/mod-playerbots'
|
repository: mod-playerbots/mod-playerbots
|
||||||
#ref: 'feature/core_update_10_2025' #used on core merge conflicts builds
|
ref: ${{ (github.head_ref || github.ref_name) == 'test-staging' && 'staging' || 'master' }}
|
||||||
path: 'modules/mod-playerbots'
|
path: modules/mod-playerbots
|
||||||
|
|
||||||
- name: Install Requirements
|
- name: Install Requirements
|
||||||
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
|
run: sudo apt-get update && sudo apt-get install -y git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libboost-all-dev
|
||||||
|
|
||||||
# - name: Cache
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# with:
|
|
||||||
# path: var/ccache
|
|
||||||
# key: ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.modules }}-modules:${{ github.ref }}:${{ github.sha }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.modules }}-modules:${{ github.ref }}
|
|
||||||
# ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.modules }}-modules
|
|
||||||
|
|
||||||
# - name: Configure OS
|
|
||||||
# run: source ./acore.sh install-deps
|
|
||||||
# env:
|
|
||||||
# CONTINUOUS_INTEGRATION: true
|
|
||||||
|
|
||||||
# - name: Create conf/config.sh
|
|
||||||
# run: source ./apps/ci/ci-conf-core.sh
|
|
||||||
|
|
||||||
# - name: Process pending sql
|
|
||||||
# run: bash bin/acore-db-pendings
|
|
||||||
|
|
||||||
# - name: Build
|
|
||||||
# run: source ./apps/ci/ci-compile.sh
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
||||||
run: >
|
run: >
|
||||||
cmake -B ${{ steps.strings.outputs.build-output-dir }}
|
cmake -B ${{ steps.strings.outputs.build-output-dir }}
|
||||||
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
|
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
|
||||||
@@ -90,11 +59,4 @@ jobs:
|
|||||||
-S ${{ github.workspace }}
|
-S ${{ github.workspace }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
# 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).
|
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
|
||||||
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
|
|
||||||
|
|
||||||
# - name: Test
|
|
||||||
# working-directory: ${{ steps.strings.outputs.build-output-dir }}
|
|
||||||
# # 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).
|
|
||||||
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
|
||||||
# run: ctest --build-config ${{ matrix.build_type }}
|
|
||||||
4
.github/workflows/core-build.yml
vendored
4
.github/workflows/core-build.yml
vendored
@@ -4,9 +4,9 @@ name: ubuntu-build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "Playerbot" ]
|
branches: [ "Playerbot", "test-staging" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "Playerbot" ]
|
branches: [ "Playerbot", "test-staging" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
1
.github/workflows/core_modules_build.yml
vendored
1
.github/workflows/core_modules_build.yml
vendored
@@ -3,6 +3,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
|
- 'test-staging'
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
|
|||||||
1
.github/workflows/dashboard-ci.yml
vendored
1
.github/workflows/dashboard-ci.yml
vendored
@@ -8,6 +8,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
|
- 'test-staging'
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
|
|||||||
14
.github/workflows/import_pending.yml
vendored
14
.github/workflows/import_pending.yml
vendored
@@ -3,47 +3,41 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
- test-staging # add this if you want pending SQL imported on this branch too
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
import-pending:
|
import-pending:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
permissions: write-all
|
permissions:
|
||||||
|
contents: write # 'write-all' is not a valid permission, should specify what is needed
|
||||||
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
|
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
# If we're fetching all the history in a later step it makes sense to
|
|
||||||
# pre-load it now
|
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.ref_name }}
|
ref: ${{ github.ref_name }}
|
||||||
|
|
||||||
- uses: denoland/setup-deno@v1
|
- uses: denoland/setup-deno@v1
|
||||||
with:
|
with:
|
||||||
# Specifies latest 1.x
|
|
||||||
deno-version: "~1.0"
|
deno-version: "~1.0"
|
||||||
|
|
||||||
- name: Import and commit pending sql
|
- name: Import and commit pending sql
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
# Get the latest changes from git
|
|
||||||
git pull --rebase origin "${{ github.ref_name }}"
|
git pull --rebase origin "${{ github.ref_name }}"
|
||||||
bash bin/acore-db-pendings
|
bash bin/acore-db-pendings
|
||||||
deno run --allow-all --unstable apps/ci/ci-pending-changelogs.ts
|
deno run --allow-all --unstable apps/ci/ci-pending-changelogs.ts
|
||||||
git add -A .
|
git add -A .
|
||||||
git commit -am "chore(DB): import pending files" -m "Referenced commit(s): ${GITHUB_SHA}" || true
|
git commit -am "chore(DB): import pending files" -m "Referenced commit(s): ${GITHUB_SHA}" || true
|
||||||
env:
|
env:
|
||||||
# Noting that the branch name can only be master, as per the event
|
|
||||||
# triggering this action
|
|
||||||
BRANCH: ${{ github.ref_name }}
|
BRANCH: ${{ github.ref_name }}
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.AC_GITHUB_TOKEN }}
|
github_token: ${{ secrets.AC_GITHUB_TOKEN }}
|
||||||
# Noting that the branch name can only be master, as per the event
|
branch: ${{ github.ref_name }}
|
||||||
# triggering this action
|
|
||||||
branch: ${{ github.ref_name }}
|
|
||||||
12
.github/workflows/macos_build.yml
vendored
12
.github/workflows/macos_build.yml
vendored
@@ -1,12 +1,16 @@
|
|||||||
name: macos-build
|
name: macos-build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "Playerbot" ]
|
branches:
|
||||||
|
- "Playerbot"
|
||||||
|
- "test-staging" # added
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "Playerbot" ]
|
branches:
|
||||||
|
- "Playerbot"
|
||||||
|
- "test-staging" # added
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.head_ref }} || concat(${{ github.ref_name }}, ${{ github.workflow }})
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -43,4 +47,4 @@ jobs:
|
|||||||
run: source ./apps/ci/mac/ci-compile.sh
|
run: source ./apps/ci/mac/ci-compile.sh
|
||||||
- name: ccache stats
|
- name: ccache stats
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ccache -s || true
|
run: ccache -s || true
|
||||||
8
.github/workflows/windows_build.yml
vendored
8
.github/workflows/windows_build.yml
vendored
@@ -1,9 +1,10 @@
|
|||||||
name: windows-build
|
name: windows-build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "Playerbot" ]
|
branches: [ "Playerbot", "test-staging" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "Playerbot" ]
|
branches: [ "Playerbot", "test-staging" ]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# One concurrency group per workflow + ref.
|
# One concurrency group per workflow + ref.
|
||||||
@@ -28,14 +29,17 @@ jobs:
|
|||||||
BOOST_ROOT: C:\local\boost_1_82_0
|
BOOST_ROOT: C:\local\boost_1_82_0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: ccache
|
- name: ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.13
|
uses: hendrikmuhs/ccache-action@v1.2.13
|
||||||
|
|
||||||
- name: Configure OS
|
- name: Configure OS
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
CONTINUOUS_INTEGRATION: true
|
CONTINUOUS_INTEGRATION: true
|
||||||
run: |
|
run: |
|
||||||
./acore.sh install-deps
|
./acore.sh install-deps
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user