46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
name: Linux Build
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
compiler: [gcc, clang]
|
|
|
|
include:
|
|
- os: ubuntu-20.04
|
|
name: Ubuntu 20.04 GCC
|
|
compiler: gcc
|
|
|
|
- os: ubuntu-20.04
|
|
name: Ubuntu 20.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
|