forked from Qfusion/qfusion
-
Notifications
You must be signed in to change notification settings - Fork 45
/
.appveyor.yml
72 lines (57 loc) · 2.24 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
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
BUILD_STEAMLIB: 1
- BUILD_PLATFORM: x86
VS_GENERATOR: Visual Studio 15 2017
- BUILD_PLATFORM: x64
VS_GENERATOR: Visual Studio 15 2017 Win64
BUILD_STEAMLIB: 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\ -DBUILD_STEAMLIB=%BUILD_STEAMLIB%
cd ..
build_script:
- cmd: >-
IF "%BUILD_STEAMLIB%"=="1" curl https://warfork.com/downloads/sdk/ --output third-party/steamworks/sdk.zip
IF "%BUILD_STEAMLIB%"=="1" 7z x third-party/steamworks/sdk.zip -othird-party/steamworks
msbuild build_%BUILD_PLATFORM%\qfusion.sln /p:configuration=Release /maxcpucount:2
cd source\build\Release
XCOPY ..\..\..\libsrcs\src\openal-soft\bin\Win32\soft_oal.dll soft_oal32.dll*
XCOPY ..\..\..\libsrcs\src\openal-soft\bin\Win64\soft_oal.dll soft_oal64.dll*
>>commit.txt echo %APPVEYOR_REPO_COMMIT%
IF "%BUILD_STEAMLIB%"=="1" >>steam_appid.txt echo 671610
IF "%BUILD_STEAMLIB%"=="1" 7z a ..\..\..\win_%BUILD_PLATFORM%-STEAM-Release.zip * '-xr!*.exp' '-xr!*.lib'
IF "%BUILD_STEAMLIB%"=="" 7z a ..\..\..\win_%BUILD_PLATFORM%-Release.zip * '-xr!*.exp' '-xr!*.lib'
cd ..\..\..\
artifacts:
- path: win_x86-Release.zip
- path: win_x64-Release.zip
- path: win_x86-STEAM-Release.zip
- path: win_x64-STEAM-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