mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 13:57:52 +00:00
various build corrections
This commit is contained in:
10
.github/workflows/core-build-nopch.yml
vendored
10
.github/workflows/core-build-nopch.yml
vendored
@@ -12,13 +12,6 @@ on:
|
|||||||
- synchronize
|
- synchronize
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# One concurrency group per workflow + ref.
|
|
||||||
#
|
|
||||||
# - PRs use `refs/pull/<PR_NUMBER>/merge`, so new commits cancel older
|
|
||||||
# in-progress runs for the same PR.
|
|
||||||
# - When a PR is merged, a push to the target branch starts a new group,
|
|
||||||
# canceling any still-running PR CI.
|
|
||||||
# - Branch pushes are isolated by ref.
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
@@ -53,4 +46,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
CC: ${{ matrix.compiler.CC }}
|
CC: ${{ matrix.compiler.CC }}
|
||||||
CXX: ${{ matrix.compiler.CXX }}
|
CXX: ${{ matrix.compiler.CXX }}
|
||||||
pch: false
|
pch: false
|
||||||
|
modules: true # optional: include module compilation if desired
|
||||||
14
.github/workflows/core-build-pch.yml
vendored
14
.github/workflows/core-build-pch.yml
vendored
@@ -12,13 +12,6 @@ on:
|
|||||||
- synchronize
|
- synchronize
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# One concurrency group per workflow + ref.
|
|
||||||
#
|
|
||||||
# - PRs use `refs/pull/<PR_NUMBER>/merge`, so new commits cancel older
|
|
||||||
# in-progress runs for the same PR.
|
|
||||||
# - When a PR is merged, a push to the target branch starts a new group,
|
|
||||||
# canceling any still-running PR CI.
|
|
||||||
# - Branch pushes are isolated by ref.
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
@@ -41,9 +34,7 @@ jobs:
|
|||||||
CC: clang-18
|
CC: clang-18
|
||||||
CXX: clang++-18
|
CXX: clang++-18
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: ${{ matrix.os }}-${{ matrix.compiler }}-pch
|
name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-pch
|
||||||
env:
|
|
||||||
COMPILER: ${{ matrix.compiler }}
|
|
||||||
if: github.repository == 'mod-playerbots/azerothcore-wotlk' && !github.event.pull_request.draft
|
if: github.repository == 'mod-playerbots/azerothcore-wotlk' && !github.event.pull_request.draft
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -51,4 +42,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
CC: ${{ matrix.compiler.CC }}
|
CC: ${{ matrix.compiler.CC }}
|
||||||
CXX: ${{ matrix.compiler.CXX }}
|
CXX: ${{ matrix.compiler.CXX }}
|
||||||
pch: true
|
pch: true
|
||||||
|
modules: true # optional: include modules in PCH build
|
||||||
58
.github/workflows/core-build-playerbots.yml
vendored
58
.github/workflows/core-build-playerbots.yml
vendored
@@ -26,37 +26,41 @@ jobs:
|
|||||||
c_compiler: gcc
|
c_compiler: gcc
|
||||||
cpp_compiler: g++
|
cpp_compiler: g++
|
||||||
build_type: Release
|
build_type: Release
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: ${{ matrix.os }}-${{ matrix.cpp_compiler }}
|
name: ${{ matrix.os }}-${{ matrix.cpp_compiler }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout AzerothCore
|
- name: Checkout AzerothCore
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set reusable strings
|
- name: Set reusable strings
|
||||||
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: 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: ${{ (github.head_ref || github.ref_name) == 'test-staging' && 'staging' || 'master' }}
|
# Map AC branch → PB branch
|
||||||
path: modules/mod-playerbots
|
ref: ${{ github.ref_name == 'Playerbot' && 'master' || 'test-staging' }}
|
||||||
|
path: modules/mod-playerbots
|
||||||
- name: Install Requirements
|
|
||||||
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: 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
|
- name: Install Requirements
|
||||||
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
|
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: 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 }}
|
||||||
23
.github/workflows/macos_build.yml
vendored
23
.github/workflows/macos_build.yml
vendored
@@ -1,13 +1,14 @@
|
|||||||
name: macos-build
|
name: macos-build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "Playerbot"
|
- "Playerbot"
|
||||||
- "test-staging" # added
|
- "test-staging"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- "Playerbot"
|
- "Playerbot"
|
||||||
- "test-staging" # added
|
- "test-staging"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@@ -27,7 +28,16 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: ${{ matrix.os }}
|
name: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout AzerothCore
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Checkout Playerbot Module
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: mod-playerbots/mod-playerbots
|
||||||
|
ref: ${{ github.ref_name == 'Playerbot' && 'master' || 'test-staging' }}
|
||||||
|
path: modules/mod-playerbots
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
@@ -36,15 +46,22 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
ccache:${{ matrix.os }}:${{ github.ref_name }}
|
ccache:${{ matrix.os }}:${{ github.ref_name }}
|
||||||
ccache:${{ matrix.os }}
|
ccache:${{ matrix.os }}
|
||||||
|
|
||||||
- name: reset ccache stats
|
- name: reset ccache stats
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ccache -z || true
|
run: ccache -z || true
|
||||||
|
|
||||||
- name: Install latest bash
|
- name: Install latest bash
|
||||||
run: brew install bash
|
run: brew install bash
|
||||||
|
|
||||||
- name: Configure OS
|
- name: Configure OS
|
||||||
|
shell: bash
|
||||||
run: source ./acore.sh install-deps
|
run: source ./acore.sh install-deps
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
shell: bash
|
||||||
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
|
||||||
19
.github/workflows/windows_build.yml
vendored
19
.github/workflows/windows_build.yml
vendored
@@ -7,13 +7,6 @@ on:
|
|||||||
branches: [ "Playerbot", "test-staging" ]
|
branches: [ "Playerbot", "test-staging" ]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# One concurrency group per workflow + ref.
|
|
||||||
#
|
|
||||||
# - PRs use `refs/pull/<PR_NUMBER>/merge`, so new commits cancel older
|
|
||||||
# in-progress runs for the same PR.
|
|
||||||
# - When a PR is merged, a push to the target branch starts a new group,
|
|
||||||
# canceling any still-running PR CI.
|
|
||||||
# - Branch pushes are isolated by ref.
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
@@ -28,7 +21,15 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
BOOST_ROOT: C:\local\boost_1_82_0
|
BOOST_ROOT: C:\local\boost_1_82_0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout AzerothCore
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Checkout Playerbot Module
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: mod-playerbots/mod-playerbots
|
||||||
|
ref: ${{ github.ref_name == 'Playerbot' && 'master' || 'test-staging' }}
|
||||||
|
path: modules/mod-playerbots
|
||||||
|
|
||||||
- name: ccache
|
- name: ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.13
|
uses: hendrikmuhs/ccache-action@v1.2.13
|
||||||
@@ -44,4 +45,4 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export CTOOLS_BUILD=all
|
export CTOOLS_BUILD=all
|
||||||
./acore.sh compiler build
|
./acore.sh compiler build
|
||||||
Reference in New Issue
Block a user