-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
62 lines (62 loc) · 1.85 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
version: 1.20.2.{build}
image:
- Visual Studio 2019
configuration:
- Release
- Native
environment:
matrix:
- BUILD_TOOL: cmake
CMAKE_CONFIGURATION: x86-Release
- BUILD_TOOL: cmake
CMAKE_CONFIGURATION: x86-Native
NATIVE_ARGS: "-DBLD_NATIVE=true"
- BUILD_TOOL: msbuild
matrix:
exclude:
- configuration: Native
BUILD_TOOL: cmake
before_build:
# setup Visual C++ build environment
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
# set environment variables for additional properties of Visual C++ projects
- set NOSAFESEH=/p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\src\nosafeseh.props
- set MSBUILD_ARGS=-maxcpucount:8 %NOSAFESEH%
test_script:
- echo 'There is no tests for %CONFIGURATION% configuration'
for:
- matrix:
only:
- configuration: Release
BUILD_TOOL: msbuild
build_script:
- devenv /Upgrade Mss32dummy.sln
- msbuild %MSBUILD_ARGS% /p:Configuration=Debug /p:Platform=Win32 Mss32dummy.sln
- devenv /Upgrade src/BOD.sln
- msbuild %MSBUILD_ARGS% /p:Platform=Win32 src/BOD.sln
- devenv /Upgrade tests/UnitTests.sln
- xcopy /Y /E tests\gtest-v1-10 tests\gtest
- msbuild %MSBUILD_ARGS% /p:Platform=Win32 tests/UnitTests.sln
test_script:
- tests\%CONFIGURATION%\UnitTests.exe
- matrix:
only:
- configuration: Native
BUILD_TOOL: msbuild
build_script:
- devenv /Upgrade src/BOD.sln
- msbuild %MSBUILD_ARGS% /p:Platform=Win32 src/BOD.sln
- matrix:
only:
- BUILD_TOOL: cmake
build_script:
- cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo %NATIVE_ARGS% -S src -B .cmake
- cmake --build .cmake
- make_setup.bat
artifacts:
- path: install/*.exe
name: Blade of Darkness patch installer
- path: install/bin/*.exe
name: Blade of Darkness main executable
- path: install/bin/**/*.dll
name: Blade of Darkness library