Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize workflow #185

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/core_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: sudo apt-get update -y

- name: Install Required Packages
run: sudo apt-get install -y git make cmake clang libssl-dev libbz2-dev build-essential default-libmysqlclient-dev libace-dev
run: source ./apps/ci/ci-packages.sh

- name: Update Compilers
run: source ./apps/ci/ci-compiler-update.sh
Expand Down
22 changes: 12 additions & 10 deletions apps/ci/ci-compile.sh
Pysis868 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

set -e

# Check for & make directories
Pysis868 marked this conversation as resolved.
Show resolved Hide resolved
time test -d _build || mkdir _build
time test -d _install || mkdir _install
test -d build || mkdir build
cd build

# Move to build folder
time cd _build
cmake .. \
-DBUILD_MANGOSD:BOOL=1 \
-DBUILD_REALMD:BOOL=1 \
-DBUILD_TOOLS:BOOL=1 \
-DPLAYERBOTS:BOOL=1 \
-DSCRIPT_LIB_ELUNA:BOOL=1 \
-DSCRIPT_LIB_SD3:BOOL=1 \
-DSOAP:BOOL=1 \
-DUSE_STORMLIB:BOOL=1

# Run CMake Configurations
time cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_TOOLS:BOOL=1 -DBUILD_MANGOSD:BOOL=1 -DBUILD_REALMD:BOOL=1 -DSOAP:BOOL=1 -DSCRIPT_LIB_ELUNA:BOOL=1 -DSCRIPT_LIB_SD3:BOOL=1 -DPLAYERBOTS:BOOL=1 -DUSE_STORMLIB:BOOL=1

# Compile the Project
time make -j 6
cmake --build . --config Release --parallel 4
16 changes: 16 additions & 0 deletions apps/ci/ci-packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -e

# Install Required Packages
sudo apt-get install -y \
build-essential \
clang \
cmake \
default-libmysqlclient-dev \
git \
libssl-dev \
libbz2-dev \
libace-dev \
make \
;
Loading