mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
284 lines
7.9 KiB
YAML
284 lines
7.9 KiB
YAML
language: c
|
|
cache: ccache
|
|
dist: xenial
|
|
|
|
env:
|
|
global:
|
|
- BUILDDIR=.
|
|
- MAKER="make -j2"
|
|
- TESTER="make test"
|
|
|
|
matrix:
|
|
include:
|
|
- os: windows
|
|
compiler: clang
|
|
env:
|
|
- GENERATOR="cmake . "
|
|
- MAKER="cmake --build . --config Release"
|
|
- TESTER="ctest --verbose -C Release"
|
|
- os: windows
|
|
compiler: clang
|
|
env:
|
|
- GENERATOR="cmake ..\\zlib-ng -DZLIB_COMPAT=ON"
|
|
- MAKER="cmake --build . --config Release"
|
|
- TESTER="ctest --verbose -C Release"
|
|
- BUILDDIR=..\\build
|
|
- os: windows
|
|
compiler: gcc
|
|
env:
|
|
- GENERATOR="cmake ."
|
|
- MAKER="cmake --build . --config Release"
|
|
- TESTER="ctest --verbose -C Release"
|
|
|
|
- os: linux
|
|
compiler: gcc
|
|
env: GENERATOR="./configure --warn"
|
|
- os: linux
|
|
compiler: gcc
|
|
env: GENERATOR="cmake . -DZLIB_COMPAT=OFF -DWITH_GZFILEOP=ON -DWITH_NEW_STRATEGIES=YES -DWITH_OPTIM=ON"
|
|
- os: linux
|
|
compiler: gcc
|
|
env:
|
|
- GENERATOR="../zlib-ng/configure --warn --zlib-compat"
|
|
- BUILDDIR=../build
|
|
- os: linux
|
|
compiler: gcc
|
|
env: GENERATOR="./configure --warn --zlib-compat --without-optimizations --without-new-strategies"
|
|
- os: linux
|
|
compiler: gcc
|
|
env: GENERATOR="cmake ."
|
|
- os: linux
|
|
compiler: gcc
|
|
env:
|
|
- GENERATOR="cmake ../zlib-ng"
|
|
- BUILDDIR=../build
|
|
|
|
- os: linux
|
|
compiler: clang
|
|
env: GENERATOR="./configure --warn --zlib-compat"
|
|
- os: linux
|
|
compiler: clang
|
|
env:
|
|
- GENERATOR="cmake ../zlib-ng"
|
|
- BUILDDIR=../build
|
|
- os: linux
|
|
compiler: clang
|
|
env:
|
|
- GENERATOR="scan-build -v --status-bugs cmake ../zlib-ng"
|
|
- MAKER="scan-build -v --status-bugs make"
|
|
- BUILDDIR=../build
|
|
|
|
- os: osx
|
|
compiler: gcc
|
|
env: GENERATOR="./configure --warn --zlib-compat"
|
|
- os: osx
|
|
compiler: gcc
|
|
env:
|
|
- GENERATOR="../zlib-ng/configure --warn --zlib-compat"
|
|
- BUILDDIR=../build
|
|
- os: osx
|
|
compiler: gcc
|
|
env: GENERATOR="cmake ."
|
|
|
|
- os: osx
|
|
compiler: clang
|
|
env: GENERATOR="./configure --warn --zlib-compat"
|
|
- os: osx
|
|
compiler: clang
|
|
env:
|
|
- GENERATOR="cmake ../zlib-ng"
|
|
- BUILDDIR=../build
|
|
|
|
# compiling for linux-ppc64le variants
|
|
- os: linux-ppc64le
|
|
compiler: gcc
|
|
env: GENERATOR="cmake ."
|
|
- os: linux-ppc64le
|
|
compiler: gcc
|
|
env:
|
|
- GENERATOR="cmake ../zlib-ng"
|
|
- BUILDDIR=../build
|
|
|
|
- os: linux-ppc64le
|
|
compiler: clang
|
|
env: GENERATOR="./configure --warn --zlib-compat"
|
|
- os: linux-ppc64le
|
|
compiler: clang
|
|
env:
|
|
- GENERATOR="cmake ../zlib-ng"
|
|
- BUILDDIR=../build
|
|
|
|
# Cross compiling for arm variants
|
|
- os: linux
|
|
compiler: aarch64-linux-gnu-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-aarch64-linux-gnu
|
|
- libc-dev-arm64-cross
|
|
# For all aarch64 implementations NEON is mandatory, while crypto/crc are not.
|
|
env:
|
|
- GENERATOR="./configure --warn --zlib-compat"
|
|
- CHOST=aarch64-linux-gnu
|
|
- os: linux
|
|
compiler: aarch64-linux-gnu-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-aarch64-linux-gnu
|
|
- libc-dev-arm64-cross
|
|
# For all aarch64 implementations NEON is mandatory, while crypto/crc are not.
|
|
env:
|
|
- GENERATOR="cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-aarch64.cmake . -DZLIB_COMPAT=ON"
|
|
- MAKER="cmake --build . --config Release"
|
|
- TESTER="ctest --verbose -C Release"
|
|
- os: linux
|
|
compiler: aarch64-linux-gnu-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-aarch64-linux-gnu
|
|
- libc-dev-arm64-cross
|
|
env:
|
|
- GENERATOR="./configure --warn --zlib-compat"
|
|
- CHOST=aarch64-linux-gnu
|
|
- os: linux
|
|
compiler: aarch64-linux-gnu-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-aarch64-linux-gnu
|
|
- libc-dev-arm64-cross
|
|
env:
|
|
- GENERATOR="cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-aarch64.cmake ."
|
|
- MAKER="cmake --build . --config Release"
|
|
- TESTER="ctest --verbose -C Release"
|
|
# Hard-float subsets
|
|
- os: linux
|
|
compiler: arm-linux-gnueabihf-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-arm-linux-gnueabihf
|
|
- libc-dev-armhf-cross
|
|
env:
|
|
- GENERATOR="./configure --warn"
|
|
- CHOST=arm-linux-gnueabihf
|
|
- os: linux
|
|
compiler: arm-linux-gnueabihf-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-arm-linux-gnueabihf
|
|
- libc-dev-armhf-cross
|
|
env:
|
|
- GENERATOR="cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-arm.cmake . -DCMAKE_C_COMPILER_TARGET=arm-linux-gnueabihf"
|
|
- MAKER="cmake --build . --config Release"
|
|
- TESTER="ctest --verbose -C Release"
|
|
- os: linux
|
|
compiler: arm-linux-gnueabihf-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-arm-linux-gnueabihf
|
|
- libc-dev-armhf-cross
|
|
env:
|
|
- GENERATOR="./configure --warn --zlib-compat --without-neon"
|
|
- CHOST=arm-linux-gnueabihf
|
|
- os: linux
|
|
compiler: arm-linux-gnueabihf-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-arm-linux-gnueabihf
|
|
- libc-dev-armhf-cross
|
|
env:
|
|
- GENERATOR="cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-arm.cmake . -DZLIB_COMPAT=ON -DWITH_NEON=OFF -DCMAKE_C_COMPILER_TARGET=arm-linux-gnueabihf"
|
|
- MAKER="cmake --build . --config Release"
|
|
- TESTER="ctest --verbose -C Release"
|
|
- os: linux
|
|
compiler: arm-linux-gnueabihf-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-arm-linux-gnueabihf
|
|
- libc-dev-armhf-cross
|
|
env:
|
|
- GENERATOR="./configure --warn --zlib-compat"
|
|
- CHOST=arm-linux-gnueabihf
|
|
- os: linux
|
|
compiler: arm-linux-gnueabihf-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-arm-linux-gnueabihf
|
|
- libc-dev-armhf-cross
|
|
env:
|
|
- GENERATOR="cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-arm.cmake . -DZLIB_COMPAT=ON -DCMAKE_C_COMPILER_TARGET=arm-linux-gnueabihf"
|
|
- MAKER="cmake --build . --config Release"
|
|
- TESTER="ctest --verbose -C Release"
|
|
# Soft-float subset
|
|
- os: linux
|
|
compiler: arm-linux-gnueabi-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-arm-linux-gnueabi
|
|
- libc-dev-armel-cross
|
|
env:
|
|
- GENERATOR="./configure"
|
|
- CHOST=arm-linux-gnueabi
|
|
- os: linux
|
|
compiler: arm-linux-gnueabi-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-arm-linux-gnueabi
|
|
- libc-dev-armel-cross
|
|
env:
|
|
- GENERATOR="cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-arm.cmake . -DCMAKE_C_COMPILER_TARGET=arm-linux-gnueabi"
|
|
- MAKER="cmake --build . --config Release"
|
|
- TESTER="ctest --verbose -C Release"
|
|
- os: linux
|
|
compiler: arm-linux-gnueabi-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-arm-linux-gnueabi
|
|
- libc-dev-armel-cross
|
|
env:
|
|
- GENERATOR="./configure --zlib-compat"
|
|
- CHOST=arm-linux-gnueabi
|
|
- os: linux
|
|
compiler: arm-linux-gnueabi-gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- qemu
|
|
- gcc-arm-linux-gnueabi
|
|
- libc-dev-armel-cross
|
|
env:
|
|
- GENERATOR="cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-arm.cmake . -DZLIB_COMPAT=ON -DCMAKE_C_COMPILER_TARGET=arm-linux-gnueabi"
|
|
- MAKER="cmake --build . --config Release"
|
|
- TESTER="ctest --verbose -C Release"
|
|
|
|
script:
|
|
- mkdir -p $BUILDDIR
|
|
- cd $BUILDDIR
|
|
- $GENERATOR
|
|
- $MAKER
|
|
- $TESTER
|