forked from ihhub/fheroes2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
76 lines (64 loc) · 2.14 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
skip_commits:
files:
- .travis.yml
- '**/*.md'
- .gitignore
- .github/workflows/*
- sonar-project.properties
# version format
version: 1.0.{build}
# Build worker image (VM template)
image: Visual Studio 2015
configuration:
- Release-SDL1
- Release-SDL2
for:
-
matrix:
only:
- configuration: Release-SDL1
environment:
deploy_conf_name: SDL1
-
matrix:
only:
- configuration: Release-SDL2
environment:
deploy_conf_name: SDL2
platform:
- x86
- x64
skip_tags: true
# clone directory
clone_folder: C:\projects\fheroes2
install:
- cd C:\projects\fheroes2\script\windows
- if not exist C:\projects\packages call install_packages.bat
- cd C:\projects\fheroes2
after_build:
- cmd: cd C:\projects\fheroes2\build\%platform%\%configuration%
- cmd: 7z a fheroes2_windows_%platform%_%deploy_conf_name%.zip fheroes2.exe SDL*.dll lib*.dll
- cmd: cd C:\projects\fheroes2
- cmd: xcopy /Y /s /Q "doc\README.txt" "."
- cmd: 7z a build\%platform%\%configuration%\fheroes2_windows_%platform%_%deploy_conf_name%.zip script\demo\demo_windows.bat LICENSE fheroes2.key changelog.txt README.txt
artifacts:
- path: build\$(platform)\$(configuration)\fheroes2_windows_$(platform)_$(deploy_conf_name).zip
name: fheroes2-%platform%-%deploy_conf_name%
deploy:
tag: fheroes2-windows-$(platform)-$(deploy_conf_name)
release: Windows $(platform) build with $(deploy_conf_name) support (latest commit)
description: $(APPVEYOR_REPO_COMMIT_MESSAGE)
provider: GitHub
auth_token:
secure: 0KcyoHsROl98QBsNcB+so6hegLvgWZ0R2zYammwgqdDyVXkNDejMjiDpr5sqDnx9
artifact: /.*\.zip/
draft: false
prerelease: true
force_update: true
on:
branch: master
cache:
- C:\projects\packages -> appveyor.yml, script\windows\install_packages.bat, script\windows\setup_packages.bat
- C:\projects\sdl -> appveyor.yml, script\windows\install_packages.bat, script\windows\setup_packages.bat
- C:\projects\sdl2 -> appveyor.yml, script\windows\install_packages.bat, script\windows\setup_packages.bat
- C:\projects\zlib -> appveyor.yml, script\windows\install_packages.bat, script\windows\setup_packages.bat