forked from TeamForbiddenLLC/warfork-qfusion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
63 lines (53 loc) · 1.86 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
version: 1.0.{build}
skip_branch_with_pr: false
image: Visual Studio 2017
configuration: Release
environment:
matrix:
- BUILD_PLATFORM: x86
VS_GENERATOR: Visual Studio 15 2017
- USE_SDL2: 1
BUILD_PLATFORM: x86
VS_GENERATOR: Visual Studio 15 2017
- BUILD_PLATFORM: x64
VS_GENERATOR: Visual Studio 15 2017 Win64
- USE_SDL2: 1
BUILD_PLATFORM: x64
VS_GENERATOR: Visual Studio 15 2017 Win64
install:
- cmd: >-
IF not exist "build_%BUILD_PLATFORM%" mkdir "build_%BUILD_PLATFORM%"
cd "build_%BUILD_PLATFORM%"
cmake -G "%VS_GENERATOR%" -T "%VS_TOOLSET%" ..\source\ -DUSE_SDL2=%USE_SDL2%
cd ..
build_script:
- cmd: >-
msbuild build_%BUILD_PLATFORM%\qfusion.sln /p:configuration=Release /maxcpucount:2
IF "%USE_SDL2%"=="1" cp libsrcs/lib/win32/%BUILD_PLATFORM%/release/SDL2.dll source\build\Release
cd source\build\Release
>>commit.txt echo %APPVEYOR_REPO_COMMIT%
IF "%USE_SDL2%"=="1" 7z a ..\..\..\win_%BUILD_PLATFORM%-SDL-Release.zip * -r -x!*.exp -x!*.lib
IF "%USE_SDL2%"=="" 7z a ..\..\..\win_%BUILD_PLATFORM%-Release.zip * -r -x!*.exp -x!*.lib
cd ..\..\..\
artifacts:
- path: win_x86-Release.zip
- path: win_x64-Release.zip
- path: win_x86-SDL-Release.zip
- path: win_x64-SDL-Release.zip
deploy:
- provider: Environment
name: Automatic Github releases for qfusion
on:
branch: /(master|ci|warsow_2.1)/
APPVEYOR_REPO_TAG: true
on_success:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/Warfork/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 success $env:WEBHOOK_URL
on_failure:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/Warfork/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 failure $env:WEBHOOK_URL
notifications:
- provider: GitHubPullRequest
on_build_success: true
on_build_failure: true
on_build_status_changed: false