summaryrefslogtreecommitdiffstats
path: root/appveyor.yml
blob: ac6ef7c1a0b80cb4602186e41a9050ec9982d2fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: 1.0.{build}
clone_depth: 50

image:
- Visual Studio 2019
- Visual Studio 2017

branches:
  only:
    - master

# 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
    BUILD_DIR: Debug x64

  - job_name: Windows-x86
    configuration: Release
    BUILD_DIR: Release x86

  - job_name: Windows-x64
    configuration: Release
    BUILD_DIR: Release x64

matrix:
  exclude:
    - image: Visual Studio 2017
      configuration: Release
    - image: Visual Studio 2019
      configuration: Debug

build:
  project: '%BUILD_DIR%\Cuberite.sln'
  parallel: true
  verbosity: minimal

pull_requests:
  do_not_increment_build_number: true

install:
- git submodule update --init
- if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%"
- cd "%BUILD_DIR%"

for:
##############################
# Windows 64-bit debug build #
##############################
-
  matrix:
    only:
      - job_name: Windows-x64-Debug

  before_build:
  # TODO: re-add -DSELF_TEST=YES -DBUILD_TOOLS=YES once PCH for tools enabled (too slow otherwise)
  - cmake -G "Visual Studio 15 2017" -DSELF_TEST=No -DBUILD_TOOLS=No ..

################################
# Windows 32-bit release build #
################################
-
  matrix:
    only:
      - job_name: Windows-x86

  before_build:
  - cmake -G "Visual Studio 16 2019" ..

################################
# Windows 64-bit release build #
################################
-
  matrix:
    only:
      - job_name: Windows-x64

  before_build:
  - cmake -G "Visual Studio 16 2019" -A "x64" ..

###########################################
# Cache for speeding up subsequent builds #
###########################################
cache:
  - '%BUILD_DIR%\CMakeCache.txt'

#####################
# Package artifacts #
#####################
after_build:
- cd Server
- Install\PackWindowsExecutables.cmd