-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
72 lines (57 loc) · 2.15 KB
/
appveyor.yml
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
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.5.{build}
# branches to build
branches:
# whitelist
only:
- master
- performance
- server-connection
# blacklist
except:
- gh-pages
cache:
- c:\tools\vcpkg\installed\
# Maximum number of concurrent jobs for the project
max_jobs: 1
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
os: Visual Studio 2022
#---------------------------------#
# build configuration #
#---------------------------------#
install:
- cmd: git config --global core.autocrlf true
- cmd: cd C:\Tools\vcpkg
- cmd: .\bootstrap-vcpkg.bat
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- cmd: git submodule update --init --recursive
- cmd: vcpkg install --triplet=x86-windows-static
- cmd: vcpkg integrate install
- cmd: msbuild /version
# build Configuration, i.e. Debug, Release, etc.
platform: x86
configuration: Release
build_script:
- ps: (Get-Content C:\projects\cofrance\Constants.h).replace('@appveyor_build', $Env:appveyor_build_version) | Set-Content C:\projects\cofrance\Constants.h
- ps: (Get-Content C:\projects\cofrance\CoFrance.rc).replace('@appveyor_build', $Env:appveyor_build_version) | Set-Content C:\projects\cofrance\CoFrance.rc
- cmd: msbuild "C:\projects\cofrance\CoFrance.sln" /p:VcpkgEnableManifest=true /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- cmd: mkdir CoFrance-nightly
- cmd: cp Release\CoFrance.dll CoFrance-nightly\
- cmd: 7z a CoFrance-nightly-%APPVEYOR_BUILD_VERSION%.zip %APPVEYOR_BUILD_FOLDER%\CoFrance-nightly\
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: CoFrance-nightly-%APPVEYOR_BUILD_VERSION%.zip