Skip to content

Commit f95cc0e

Browse files
committed
CI: Add CI check for retail
1 parent ac2d94c commit f95cc0e

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,51 @@ jobs:
5858
./authserver --version
5959
./worldserver --version
6060
61+
TC-Retail-Eluna:
62+
strategy:
63+
fail-fast: false
64+
matrix:
65+
include:
66+
- eluna: OFF
67+
lua: lua52
68+
- eluna: ON
69+
lua: lua52
70+
runs-on: ubuntu-22.04
71+
steps:
72+
- uses: actions/checkout@v4
73+
with:
74+
submodules: false
75+
repository: Eluna-Ports/ElunaTrinityCore
76+
- uses: actions/checkout@v4
77+
with:
78+
path: src/server/game/LuaEngine
79+
- name: Dependencies
80+
run: |
81+
sudo apt-get update && sudo apt-get install -yq libboost-all-dev g++-11
82+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11
83+
- name: Setup
84+
env:
85+
ELUNA: ${{ matrix.eluna }}
86+
LUA: ${{ matrix.lua }}
87+
run: |
88+
mkdir bin
89+
cd bin
90+
cmake ../ -DELUNA=$ELUNA -DLUA_VERSION=$LUA -DWITH_WARNINGS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DSCRIPTS=dynamic -DSERVERS=1 -DNOJEM=0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror" -DCMAKE_C_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_CXX_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_INSTALL_PREFIX=check_install -DBUILD_TESTING=1
91+
cd ..
92+
- name: Build
93+
run: |
94+
cd bin
95+
make -j 4 -k && make install
96+
- name: Unit tests
97+
run: |
98+
cd bin
99+
make test
100+
- name: Check executables
101+
run: |
102+
cd bin/check_install/bin
103+
./authserver --version
104+
./worldserver --version
105+
61106
# Cata preservation project has been abandoned, so no need for further build checks on this project
62107
# CataPres-Eluna:
63108
# strategy:

0 commit comments

Comments
 (0)