mangos/.github/workflows/core_build.yml
Antz ad2795835e
fix windows build in yml
Thanks @Meltie2013 for assistance
2021-03-05 09:16:22 +00:00

73 lines
1.8 KiB
YAML

name: core-build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
compiler: [gcc, clang]
include:
- os: ubuntu-18.04
name: Ubuntu 18.04 GCC
compiler: gcc
- os: ubuntu-18.04
name: Ubuntu 18.04 Clang
compiler: clang
runs-on: ${{ matrix.os }}
name: ${{ matrix.name }}
env:
compiler: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check for Updates
run: sudo apt-get update -y
- name: Install Required Packages
run: sudo apt-get install -y git make cmake gcc g++ clang libssl-dev libbz2-dev build-essential default-libmysqlclient-dev libace-6.4.5 libace-dev python
- name: Check for Submodule Updates
run: source ./apps/ci/ci-submodule-update.sh
- name: Build Mangos Project
run: source ./apps/ci/ci-compile.sh
windows-build:
strategy:
fail-fast: false
runs-on: windows-2019
name: Windows Server 2019
steps:
- uses: actions/checkout@v2
- name: Configure Windows
run: choco install --no-progress openssl
- name: Checkout Submodules
shell: bash
run: |
git submodule init && git submodule update
- name: Build
shell: bash
run: |
mkdir -p build && cd build
cmake .. -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
cmake --build . --config Release --parallel 4