-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
appveyor.yml
46 lines (35 loc) · 1.95 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
version: 1.0.{build}
image: Visual Studio 2022
platform:
- x86
- x64
configuration:
- Debug
clone_folder: c:\relive
build_script:
- mkdir build
- cd build
- echo %platform%
- echo %APPVEYOR_BUILD_NUMBER%
- if %platform%==x64 (cmake .. -DSDL2_DIR=c:\relive\SDL2-2.0.22 -DBUILD_NUMBER=%APPVEYOR_BUILD_NUMBER% -DCI_PROVIDER=AppVeyor -G "Visual Studio 17 2022" -A x64)
- if %platform%==x86 (cmake .. -DSDL2_DIR=c:\relive\SDL2-2.0.22 -DBUILD_NUMBER=%APPVEYOR_BUILD_NUMBER% -DCI_PROVIDER=AppVeyor -G "Visual Studio 17 2022" -A Win32)
- cmake --build . --config %configuration% -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cpack -G ZIP -C %configuration%
- ctest
install:
- git submodule update --init --recursive
- ps: Start-FileDownload 'https://www.libsdl.org/release/SDL2-devel-2.0.22-VC.zip'
- 7z x SDL2-devel-2.0.22-VC.zip
after_build:
- ps: if($env:APPVEYOR_PULL_REQUEST_NUMBER) { $env:PR_STR = "_PR$env:APPVEYOR_PULL_REQUEST_NUMBER" } else { $env:PR_STR = "" }
- 7z a RELIVE_Windows_Symbols%PR_STR%_%CONFIGURATION%_%PLATFORM%_%APPVEYOR_BUILD_NUMBER%.zip c:\relive\build\Source\AliveDllAE\%CONFIGURATION%\AliveDllAE.pdb c:\relive\build\Source\AliveDllAO\%CONFIGURATION%\AliveDllAO.pdb c:\relive\build\Source\relive\%CONFIGURATION%\relive.pdb
- rename relive-*.zip RELIVE_Windows_Binaries_Full%PR_STR%_%CONFIGURATION%_%PLATFORM%_%APPVEYOR_BUILD_NUMBER%.zip
- 7z a RELIVE_Windows_Binaries_Lite%PR_STR%_%CONFIGURATION%_%PLATFORM%.zip c:\relive\build\Source\relive\%CONFIGURATION%\relive.exe c:\relive\build\Source\AliveDllAE\%CONFIGURATION%\SDL2.dll
artifacts:
- path: build\RELIVE_Windows_Symbols*.zip
name: RELIVE_Windows_Symbols_$(configuration)_$(APPVEYOR_BUILD_NUMBER)
- path: build\RELIVE_Windows_Binaries_Full*.zip
name: RELIVE_Windows_Binaries_Full_$(configuration)_$(APPVEYOR_BUILD_NUMBER)
- path: build\RELIVE_Windows_Binaries_Lite_*.zip
name: RELIVE_Windows_Binaries_$(configuration)_$(PLATFORM)
test: false