diff --git a/.github/workflows/core_build.yml b/.github/workflows/core_build.yml index 15e28d09a..68a8c0e5f 100644 --- a/.github/workflows/core_build.yml +++ b/.github/workflows/core_build.yml @@ -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 diff --git a/apps/ci/ci-compile.sh b/apps/ci/ci-compile.sh index a8669e58c..0949627f2 100644 --- a/apps/ci/ci-compile.sh +++ b/apps/ci/ci-compile.sh @@ -2,15 +2,17 @@ set -e -# Check for & make directories -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 diff --git a/apps/ci/ci-packages.sh b/apps/ci/ci-packages.sh new file mode 100644 index 000000000..7ee3ac84c --- /dev/null +++ b/apps/ci/ci-packages.sh @@ -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 \ +;