forked from RPGHacker/asar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
64 lines (51 loc) · 1.55 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
version: '{build}'
image: Visual Studio 2015
environment:
matrix:
# job names are used for FTP uploads, try to not change them
- 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
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\bin\**\asar.exe
- path: build\asar\lib\**\*asar.dll
configuration: MinSizeRel
test_script:
- cmd: >-
cmake --build . --config MinSizeRel --target run-tests
deploy:
provider: FTP
protocol: sftp
host: r9.pm
username: asar_ftp
password:
secure: 2O8zpJfSlxa28ibgfgXNsca2OJhU4TAbOfpLaFcjf1BLqkLsjYHNlQ8p6PkI3Rki
folder: asar/windows/$(APPVEYOR_REPO_BRANCH)/$(JOB_NAME)/