forked from RPGHacker/asar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
89 lines (70 loc) · 2.68 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '{build}'
image: Visual Studio 2015
environment:
matrix:
# job names are used for FTP uploads, try to not change them
- JOB_NAME: "mingw"
CMAKE_TARGET: "MinGW Makefiles"
- JOB_NAME: "win32"
CMAKE_TARGET: "Visual Studio 14 2015"
PLATFORM: "Win32"
CMAKE_PLATFORM_TOOLSET: "-T v140"
- JOB_NAME: "win64"
CMAKE_TARGET: "Visual Studio 14 2015 Win64"
PLATFORM: "x64"
CMAKE_PLATFORM_TOOLSET: "-T v140"
- JOB_NAME: "xp_compat"
CMAKE_TARGET: "Visual Studio 14 2015"
PLATFORM: "Win32"
CMAKE_PLATFORM_TOOLSET: "-T v140_xp"
# needs to be VS2017 because the LLVM toolset only exists there
- JOB_NAME: "clang"
CMAKE_TARGET: "Visual Studio 15 2017"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PLATFORM: "Win32"
CMAKE_PLATFORM_TOOLSET: "-T llvm"
install:
- cmd: >-
mkdir build tests_tmp_dll tests_tmp_app
cd build
set PATH=C:\MinGW\bin;%PATH%
vcpkg integrate remove
cmake %CMAKE_EXTRA_FLAGS% -G "%CMAKE_TARGET%" %CMAKE_PLATFORM_TOOLSET% ..\src
on_failure:
- cmd: >-
type C:\projects\asar\build\CMakeFiles\CMakeOutput.log
type C:\projects\asar\build\CMakeFiles\CMakeError.log
build:
verbosity: minimal
artifacts:
- path: build\asar\**\asar-standalone.exe
- path: build\asar\**\*asar.dll
configuration: MinSizeRel
test_script:
# We need to pass the DLL path as an absolute path because it is used to calculate the std defines location, which will throw a warning when it's a relative path
- cmd: >-
asar-tests\%CONFIGURATION%\asar-dll-test.exe %APPVEYOR_BUILD_FOLDER%\build\asar\%CONFIGURATION%\asar.dll %APPVEYOR_BUILD_FOLDER%\tests ..\dummy_rom.sfc %APPVEYOR_BUILD_FOLDER%\tests_tmp_dll
asar-tests\%CONFIGURATION%\asar-app-test.exe asar\%CONFIGURATION%\asar-standalone.exe %APPVEYOR_BUILD_FOLDER%\tests ..\dummy_rom.sfc %APPVEYOR_BUILD_FOLDER%\tests_tmp_app
deploy:
provider: FTP
protocol: sftp
host: random.muncher.se
username: asar_ftp
password:
secure: 2O8zpJfSlxa28ibgfgXNsca2OJhU4TAbOfpLaFcjf1BLqkLsjYHNlQ8p6PkI3Rki
folder: asar/windows/$(JOB_NAME)/
for:
-
matrix:
only:
- CMAKE_TARGET: "MinGW Makefiles"
build_script:
- cmd: >-
C:/MinGW/bin/mingw32-make.exe
environment:
CMAKE_EXTRA_FLAGS: "-DCMAKE_MAKE_PROGRAM=C:/MinGW/bin/mingw32-make.exe"
CMAKE_TARGET: "MinGW Makefiles"
test_script:
- cmd: >-
asar-tests\asar-dll-test.exe %APPVEYOR_BUILD_FOLDER%\build\asar\libasar.dll %APPVEYOR_BUILD_FOLDER%\tests ..\dummy_rom.sfc %APPVEYOR_BUILD_FOLDER%\tests_tmp_dll
asar-tests\asar-app-test.exe asar\asar-standalone.exe %APPVEYOR_BUILD_FOLDER%\tests ..\dummy_rom.sfc %APPVEYOR_BUILD_FOLDER%\tests_tmp_app