2015-08-18 02:44:58 -04:00
|
|
|
version: 1.0.{build}
|
2016-07-29 01:56:50 -04:00
|
|
|
clone_depth: 50
|
2018-01-22 04:39:41 -05:00
|
|
|
|
2020-05-09 09:56:39 -04:00
|
|
|
image:
|
|
|
|
- Visual Studio 2019
|
|
|
|
- Visual Studio 2017
|
|
|
|
|
2020-05-21 18:52:19 -04:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2019-11-09 07:02:37 -05:00
|
|
|
# Set up environment variables for build info
|
|
|
|
environment:
|
|
|
|
CUBERITE_BUILD_SERIES_NAME: AppVeyor
|
|
|
|
CUBERITE_BUILD_ID: "%APPVEYOR_BUILD_NUMBER%"
|
|
|
|
CUBERITE_BUILD_DATETIME: "%APPVEYOR_REPO_COMMIT_TIMESTAMP%"
|
|
|
|
|
|
|
|
matrix:
|
2020-05-21 18:52:19 -04:00
|
|
|
- job_name: Windows-x64-Debug
|
2019-11-09 07:02:37 -05:00
|
|
|
configuration: Debug
|
2020-05-21 18:52:19 -04:00
|
|
|
BUILD_DIR: Debug x64
|
2019-11-09 07:02:37 -05:00
|
|
|
|
|
|
|
- job_name: Windows-x86
|
|
|
|
configuration: Release
|
2020-05-21 18:52:19 -04:00
|
|
|
BUILD_DIR: Release x86
|
2019-11-09 07:02:37 -05:00
|
|
|
|
|
|
|
- job_name: Windows-x64
|
|
|
|
configuration: Release
|
2020-05-21 18:52:19 -04:00
|
|
|
BUILD_DIR: Release x64
|
2019-11-09 07:02:37 -05:00
|
|
|
|
2020-05-09 09:56:39 -04:00
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- image: Visual Studio 2017
|
|
|
|
configuration: Release
|
|
|
|
- image: Visual Studio 2019
|
|
|
|
configuration: Debug
|
|
|
|
|
2020-05-21 18:52:19 -04:00
|
|
|
build:
|
|
|
|
project: '%BUILD_DIR%\Cuberite.sln'
|
|
|
|
parallel: true
|
|
|
|
verbosity: minimal
|
|
|
|
|
|
|
|
pull_requests:
|
|
|
|
do_not_increment_build_number: true
|
2020-05-09 09:56:39 -04:00
|
|
|
|
2019-11-09 07:02:37 -05:00
|
|
|
install:
|
2015-08-18 02:44:58 -04:00
|
|
|
- git submodule update --init
|
2020-05-21 18:52:19 -04:00
|
|
|
- if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%"
|
|
|
|
- cd "%BUILD_DIR%"
|
2018-01-22 04:39:41 -05:00
|
|
|
|
2019-11-09 07:02:37 -05:00
|
|
|
for:
|
|
|
|
##############################
|
|
|
|
# Windows 64-bit debug build #
|
|
|
|
##############################
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
2020-05-21 18:52:19 -04:00
|
|
|
- job_name: Windows-x64-Debug
|
2019-11-09 07:02:37 -05:00
|
|
|
|
|
|
|
before_build:
|
2020-05-09 09:56:39 -04:00
|
|
|
# TODO: re-add -DSELF_TEST=YES -DBUILD_TOOLS=YES once PCH for tools enabled (too slow otherwise)
|
2020-05-21 18:52:19 -04:00
|
|
|
- cmake -G "Visual Studio 15 2017" -DSELF_TEST=No -DBUILD_TOOLS=No ..
|
2019-11-09 07:02:37 -05:00
|
|
|
|
|
|
|
################################
|
|
|
|
# Windows 32-bit release build #
|
|
|
|
################################
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- job_name: Windows-x86
|
|
|
|
|
|
|
|
before_build:
|
2020-12-31 14:43:02 -05:00
|
|
|
- cmake -G "Visual Studio 16 2019" -A "Win32" ..
|
2019-11-09 07:02:37 -05:00
|
|
|
|
|
|
|
################################
|
|
|
|
# Windows 64-bit release build #
|
|
|
|
################################
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- job_name: Windows-x64
|
|
|
|
|
|
|
|
before_build:
|
2020-05-09 09:56:39 -04:00
|
|
|
- cmake -G "Visual Studio 16 2019" -A "x64" ..
|
2019-11-09 07:02:37 -05:00
|
|
|
|
2019-12-28 06:53:37 -05:00
|
|
|
###########################################
|
|
|
|
# Cache for speeding up subsequent builds #
|
|
|
|
###########################################
|
2019-11-09 07:02:37 -05:00
|
|
|
cache:
|
2020-05-21 18:52:19 -04:00
|
|
|
- '%BUILD_DIR%\CMakeCache.txt'
|
2019-11-09 07:02:37 -05:00
|
|
|
|
2019-12-28 06:53:37 -05:00
|
|
|
#####################
|
|
|
|
# Package artifacts #
|
|
|
|
#####################
|
2019-11-09 07:02:37 -05:00
|
|
|
after_build:
|
2020-05-21 18:52:19 -04:00
|
|
|
- cd Server
|
2019-12-28 06:53:37 -05:00
|
|
|
- Install\PackWindowsExecutables.cmd
|