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
|
||||
|
||||
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 }}
|
||||
cancel-in-progress: true
|
||||
|
||||
@@ -53,4 +46,5 @@ jobs:
|
||||
with:
|
||||
CC: ${{ matrix.compiler.CC }}
|
||||
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
|
||||
|
||||
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 }}
|
||||
cancel-in-progress: true
|
||||
|
||||
@@ -41,9 +34,7 @@ jobs:
|
||||
CC: clang-18
|
||||
CXX: clang++-18
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}-${{ matrix.compiler }}-pch
|
||||
env:
|
||||
COMPILER: ${{ matrix.compiler }}
|
||||
name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-pch
|
||||
if: github.repository == 'mod-playerbots/azerothcore-wotlk' && !github.event.pull_request.draft
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -51,4 +42,5 @@ jobs:
|
||||
with:
|
||||
CC: ${{ matrix.compiler.CC }}
|
||||
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
|
||||
cpp_compiler: g++
|
||||
build_type: Release
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}-${{ matrix.cpp_compiler }}
|
||||
|
||||
steps:
|
||||
- name: Checkout AzerothCore
|
||||
uses: actions/checkout@v3
|
||||
- name: Checkout AzerothCore
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set reusable strings
|
||||
id: strings
|
||||
shell: bash
|
||||
run: |
|
||||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
|
||||
- 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: mod-playerbots/mod-playerbots
|
||||
ref: ${{ (github.head_ref || github.ref_name) == 'test-staging' && 'staging' || 'master' }}
|
||||
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: Checkout Playerbot Module
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: mod-playerbots/mod-playerbots
|
||||
# Map AC branch → PB branch
|
||||
ref: ${{ github.ref_name == 'Playerbot' && 'master' || 'test-staging' }}
|
||||
path: modules/mod-playerbots
|
||||
|
||||
- name: Build
|
||||
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
|
||||
- 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
|
||||
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
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "Playerbot"
|
||||
- "test-staging" # added
|
||||
- "test-staging"
|
||||
pull_request:
|
||||
branches:
|
||||
- "Playerbot"
|
||||
- "test-staging" # added
|
||||
- "test-staging"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
@@ -27,7 +28,16 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}
|
||||
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
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -36,15 +46,22 @@ jobs:
|
||||
restore-keys: |
|
||||
ccache:${{ matrix.os }}:${{ github.ref_name }}
|
||||
ccache:${{ matrix.os }}
|
||||
|
||||
- name: reset ccache stats
|
||||
shell: bash
|
||||
run: ccache -z || true
|
||||
|
||||
- name: Install latest bash
|
||||
run: brew install bash
|
||||
|
||||
- name: Configure OS
|
||||
shell: bash
|
||||
run: source ./acore.sh install-deps
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: source ./apps/ci/mac/ci-compile.sh
|
||||
|
||||
- name: ccache stats
|
||||
shell: bash
|
||||
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" ]
|
||||
|
||||
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 }}
|
||||
cancel-in-progress: true
|
||||
|
||||
@@ -28,7 +21,15 @@ jobs:
|
||||
env:
|
||||
BOOST_ROOT: C:\local\boost_1_82_0
|
||||
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
|
||||
uses: hendrikmuhs/ccache-action@v1.2.13
|
||||
@@ -44,4 +45,4 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
export CTOOLS_BUILD=all
|
||||
./acore.sh compiler build
|
||||
./acore.sh compiler build
|
||||
Reference in New Issue
Block a user