2015-08-18 14:44:58 +08:00
|
|
|
version: 1.0.{build}
|
2016-07-29 13:56:50 +08:00
|
|
|
clone_depth: 50
|
2018-01-22 17:39:41 +08:00
|
|
|
|
2020-05-09 21:56:39 +08:00
|
|
|
image:
|
|
|
|
- Visual Studio 2019
|
|
|
|
- Visual Studio 2017
|
|
|
|
|
2019-11-09 20:02:37 +08: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:
|
|
|
|
- job_name: Windows-x64-debug
|
|
|
|
configuration: Debug
|
2019-12-28 19:53:37 +08:00
|
|
|
BUILD_DIR: Debug-x64
|
2019-11-09 20:02:37 +08:00
|
|
|
|
|
|
|
- job_name: Windows-x86
|
|
|
|
configuration: Release
|
2019-12-28 19:53:37 +08:00
|
|
|
BUILD_DIR: Release-x86
|
2019-11-09 20:02:37 +08:00
|
|
|
|
|
|
|
- job_name: Windows-x64
|
|
|
|
configuration: Release
|
2019-12-28 19:53:37 +08:00
|
|
|
BUILD_DIR: Release-x64
|
2019-11-09 20:02:37 +08:00
|
|
|
|
2020-05-09 21:56:39 +08:00
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- image: Visual Studio 2017
|
|
|
|
configuration: Release
|
|
|
|
- image: Visual Studio 2019
|
|
|
|
configuration: Debug
|
|
|
|
|
|
|
|
|
2019-11-09 20:02:37 +08:00
|
|
|
install:
|
2015-08-18 14:44:58 +08:00
|
|
|
- echo %TIME%
|
|
|
|
- git submodule update --init
|
2018-01-22 17:39:41 +08:00
|
|
|
|
2019-11-09 20:02:37 +08:00
|
|
|
for:
|
|
|
|
##############################
|
|
|
|
# Windows 64-bit debug build #
|
|
|
|
##############################
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- job_name: Windows-x64-debug
|
|
|
|
|
|
|
|
before_build:
|
2019-12-28 19:53:37 +08:00
|
|
|
- if not exist %BUILD_DIR% mkdir %BUILD_DIR%
|
|
|
|
- cd %BUILD_DIR%
|
2019-11-09 20:02:37 +08:00
|
|
|
- echo %TIME%
|
2020-05-09 21:56:39 +08:00
|
|
|
# TODO: re-add -DSELF_TEST=YES -DBUILD_TOOLS=YES once PCH for tools enabled (too slow otherwise)
|
|
|
|
- cmake -G "Visual Studio 15 2017" -A "x64" -DSELF_TEST=NO -DBUILD_TOOLS=NO ..
|
2019-11-09 20:02:37 +08:00
|
|
|
- echo %TIME%
|
|
|
|
- cd ..
|
|
|
|
|
|
|
|
build:
|
|
|
|
project: Debug-x64\Cuberite.sln
|
|
|
|
parallel: true
|
|
|
|
verbosity: minimal
|
|
|
|
|
|
|
|
################################
|
|
|
|
# Windows 32-bit release build #
|
|
|
|
################################
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- job_name: Windows-x86
|
|
|
|
|
2019-12-31 15:40:45 +08:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2019-11-09 20:02:37 +08:00
|
|
|
before_build:
|
2019-12-28 19:53:37 +08:00
|
|
|
- if not exist %BUILD_DIR% mkdir %BUILD_DIR%
|
|
|
|
- cd %BUILD_DIR%
|
2019-11-09 20:02:37 +08:00
|
|
|
- echo %TIME%
|
2020-05-09 21:56:39 +08:00
|
|
|
- cmake -G "Visual Studio 16 2019" ..
|
2019-11-09 20:02:37 +08:00
|
|
|
- echo %TIME%
|
|
|
|
- cd ..
|
|
|
|
|
|
|
|
build:
|
|
|
|
project: Release-x86\Cuberite.sln
|
|
|
|
parallel: true
|
|
|
|
verbosity: minimal
|
|
|
|
|
|
|
|
################################
|
|
|
|
# Windows 64-bit release build #
|
|
|
|
################################
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- job_name: Windows-x64
|
|
|
|
|
2019-12-31 15:40:45 +08:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2019-11-09 20:02:37 +08:00
|
|
|
before_build:
|
2019-12-28 19:53:37 +08:00
|
|
|
- if not exist %BUILD_DIR% mkdir %BUILD_DIR%
|
|
|
|
- cd %BUILD_DIR%
|
2019-11-09 20:02:37 +08:00
|
|
|
- echo %TIME%
|
2020-05-09 21:56:39 +08:00
|
|
|
- cmake -G "Visual Studio 16 2019" -A "x64" ..
|
2019-11-09 20:02:37 +08:00
|
|
|
- echo %TIME%
|
|
|
|
- cd ..
|
|
|
|
|
|
|
|
build:
|
|
|
|
project: Release-x64\Cuberite.sln
|
|
|
|
parallel: true
|
|
|
|
verbosity: minimal
|
|
|
|
|
2019-12-28 19:53:37 +08:00
|
|
|
###########################################
|
|
|
|
# Cache for speeding up subsequent builds #
|
|
|
|
###########################################
|
2019-11-09 20:02:37 +08:00
|
|
|
cache:
|
2019-12-30 06:59:09 +08:00
|
|
|
- Debug-x64\CMakeCache.txt
|
|
|
|
- Release-x86\CMakeCache.txt
|
|
|
|
- Release-x64\CMakeCache.txt
|
2019-11-09 20:02:37 +08:00
|
|
|
|
2019-12-28 19:53:37 +08:00
|
|
|
#####################
|
|
|
|
# Package artifacts #
|
|
|
|
#####################
|
|
|
|
|
2019-11-09 20:02:37 +08:00
|
|
|
after_build:
|
2019-12-28 19:53:37 +08:00
|
|
|
- cd %BUILD_DIR%\Server
|
|
|
|
- echo Cuberite %APPVEYOR_JOB_NAME%-#%APPVEYOR_BUILD_NUMBER% 1>buildinfo.txt
|
|
|
|
- Install\PackWindowsExecutables.cmd
|
|
|
|
- appveyor PushArtifact Cuberite.zip -FileName Cuberite.zip
|
|
|
|
- appveyor PushArtifact PDBs.zip -FileName PDBs.zip
|
|
|
|
- appveyor PushArtifact AutoAPI.zip -FileName AutoAPI.zip
|
|
|
|
- appveyor PushArtifact ManualAPI.zip -FileName ManualAPI.zip
|
|
|
|
- appveyor PushArtifact .luacheckrc -FileName .luacheckrc
|