forked from devmiyax/yabause
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
80 lines (68 loc) · 8.45 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
77
78
79
80
environment:
CMAKE_BUILD_TYPE: Release
keypass:
secure: ZLcvhuGQOxB1TWnSlnuRYg==
key:
secure: rpf8ZWv8gy7sh52aKtrvdZHUW9QT82gSn0xaWQMlzvLl4BlYcpLf6sla4mDfq5QdrPepAmQ623yLzKpDyuavKztODbhoFumhbSuFgqgNiEWY+LWRoa0X7XLOIxg2pSo64xOaQ8NEG9yRCiLq4bOY4QSWHst5KTjC3Wb4wtjUujjwMqkHufNxk7YzNvVnIvKEYUQLswAIBVtCD8qCSipYk37N6fUkWx4eAIRjU94md7BcEv1Z7XHQnvHYyDeov2TJneeGo/pHkUJh8Khe40dffOnSlYw4vAeP/x7ltlbgUxvAw7JamQaZyKmeK1G1onfeUaZoisjBKYOA/5LLUhALXBar8Mp+yyknaCtwjNxeaK3yoO9TG1gB8MdzetNX3oSVxiuuTj+oeRQbDBd9+UQelCh3c6LAgPspcNyBcf+XqlSC1chqz6kkZJxH/iq9jEbIKROYZpokmovqIJOrPUM91JiUROTFlmOO4eYJtJiSBWcwbfS25XfLjsoqctHoXpGHE5zU/O+9PLJtCucjxjTBwX7juL9rdW1yudIboNKqbxgPxt+u+EFeAeU0AMkfp1kWqdMi7Db+/yaAh+aGiCCUXTkAAXSlbMD9dZiJUpFeA3waT0hyFvITCqpPwT7zCj5K9oGKIIglRwFznpI4Rl0wyKLPhTrgF4vEJrOTHKWYBkfb+t5TWqjp2+tubhB7VFPaqLWwuSa9DkzeXZYcPr2O2ZJcxlzCTGk1jjNUlP43iSv+RndbAncq7CCyx7JfTSgP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vFy2rdzgLG05kbbL41LCAjLk17VUstE1WV68Fud8tU1hdlNbujYk9kqm4VV6q317Z/qLIVjmjBi24AISEs1i0Yvqu4NhCJ1TEo4tQzA2uL+4PlnI3VHHbsuNik8FR+XnDOlDyLpr4UGrmcxDQGaKbaaUOb3/wI17KoBlHaPmvZYGS8hegDnIlAhfxmSULw9StvLywJVgiayAS/6XzPyKrP6LKaTZecdAMUcSoI/lmH7ZEEePua0pBacHg4J+qyyVb3noPK9hpbvACFHYCSnhaH5Tcd7wpvgPTrQWoDILGnyO7Muz9WLFSAuvdMGWi3+/XlrMFhViJ7cUsLuLkZeE6muXF/yG3C5znBCzqXfuyNd1VtIuO57i4aGPUA7qQf6c256M5aA5Dku8XQWO6suovgidRfziYB8ntOsoB1jafYY9fSWLW6j/uxSqQw8B+FLDU0R06fsgzeUyYlelozqhF2STjPjtof24xvInXUbqDk6QpLeW8Fu03ZgKw2/rN15wEoWwWWw0+4D+X9Slcegag3t4k7DPJlErZkuiZ2ZyftyVuZTyaWnKl+J5d5vMAAtRt+cbVmj4nLeZjQ1YV/VtdtG76aZxvDGyBGC3cZGRNkaNokCHObAvkB9jso4NxxIe2Fx4=
# set to d if debug build
qt_dll_suffix: ""
matrix:
# Visual Studio build
- generator: "Visual Studio 14 2015"
CMAKE_PREFIX_PATH: C:\Qt\5.9.9\msvc2015
sdl_filename: SDL2-devel-2.0.3-VC.zip
sdl_arch: x86
cmake_args: "-DCMAKE_BUILD_TYPE=Release -DYAB_PORTS=qt -DYAB_WANT_VULKAN=ON -DYAB_WANT_DIRECTSOUND=ON -DYAB_WANT_DYNAREC_DEVMIYAX=TRUE -DYAB_WANT_DIRECTINPUT=ON -DSH2_DYNAREC=FALSE"
shallow_clone: true
init:
# cmake errors if sh on the path
# - rm "C:\Program Files (x86)\Git\bin\sh.exe"
#- rm "C:\Program Files\Git\usr\bin\sh.exe"
# cpack won't work because of chocolatey sharing the same name
- rm "C:\ProgramData\chocolatey\bin\cpack.exe"
#- set Path=%MINGW%\bin;%Path%
before_build:
# fetch appropriate sdl lib for visual studio or mingw
- cd c:\
- appveyor DownloadFile https://www.libsdl.org/release/%sdl_filename%
# decompress it, shorten 7z output with FIND
- 7z x %sdl_filename% | FIND /V "ing "
- appveyor DownloadFile https://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_6.11.0.zip
- tar -v -xf firebase_cpp_sdk_6.11.0.zip -C %APPVEYOR_BUILD_FOLDER%\yabause\src\qt\
- ps: $cmake_args_dx += '-DDirectX_ERR_LIBRARY="C:\Program Files (x86)\Microsoft DirectX SDK\Lib\x86\DxErr.lib" '
- ps: $cmake_args_dx += '-DDirectX_GUID_LIBRARY="C:\Program Files (x86)\Microsoft DirectX SDK\Lib\x86\dxguid.lib" '
- ps: $cmake_args_dx += '-DDirectX_INPUT8_LIBRARY="C:\Program Files (x86)\Microsoft DirectX SDK\Lib\x86\dinput8.lib" '
- ps: $cmake_args_dx += '-DDirectX_SOUND_LIBRARY="C:\Program Files (x86)\Microsoft DirectX SDK\Lib\x86\dsound.lib" '
- ps: $cmake_args_dx += '-DDirectX_XINPUT_LIBRARY="C:\Program Files (x86)\Microsoft DirectX SDK\Lib\x86\XInput.lib" '
- ps: ${env:cmake_args} = "${env:cmake_args} ${cmake_args_dx} -DMINI18N_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%\mini18n\src -DMINI18N_LIBRARY=%APPVEYOR_BUILD_FOLDER%\mini18n\build\src\Release\mini18n-static.lib"
- ps: ${env:PATH} += ';"C:/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64/"'
build_script:
# generate project files or makefiles
- cd %APPVEYOR_BUILD_FOLDER%\mini18n
- mkdir build
- cd build
- echo %cmake_args%
- cmake -G "%generator%" %cmake_args% ..
- msbuild mini18n.sln /p:configuration=Release /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cd %APPVEYOR_BUILD_FOLDER%\yabause
- mkdir build
- cd build
- echo %cmake_args%
- cmake -G "%generator%" %cmake_args% -DSDL2MAIN_LIBRARY=C:/SDL2-2.0.3/lib/%sdl_arch%/SDL2main.lib -DSDL2_INCLUDE_DIR=C:/SDL2-2.0.3/include/ -DSDL2_LIBRARY=C:/SDL2-2.0.3/lib/%sdl_arch%/SDL2.lib ..
- msbuild YabaSanshiro.sln /p:configuration=Release /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
# make a distributable package of the build output
after_build:
- cd %APPVEYOR_BUILD_FOLDER%\yabause\build
- echo %key% | base64.exe -di > key.pfx
- signtool.exe sign /tr http://timestamp.digicert.com /f key.pfx /p %keypass% ".\src\qt\Release\yabasanshiro.exe"
# zip all output files and push the artifact, name it with the commit, date and compiler type
- cmd: cpack -G ZIP
- cmd: cpack -G WIX -C Release
artifacts:
- path: yabause\build\*.zip
- path: yabause\build\*.msi
# Upload build to yabause.org
#- ps: ${env:yab_name_alt} = "yabause-latest-win64"
#- ps: ${env:yab_name_alt2} = "yabause-${git_hash_date}-win64"
#- if ["%compiler_type%"]==["msys2-mingw-w64-x86_64"] if not defined APPVEYOR_PULL_REQUEST_NUMBER curl --ftp-create-dirs -T %yab_name%.zip -u %YABUSR%:%YABPAS% ftp://ftp.tuxfamily.org/yabause/yabause-repository/releases/travis-ci/%yab_name_alt%.zip
#- if ["%compiler_type%"]==["msys2-mingw-w64-x86_64"] curl --ftp-create-dirs -T %yab_name%.zip -u %YABUSR%:%YABPAS% ftp://ftp.tuxfamily.org/yabause/yabause-repository/releases/travis-ci/%yab_name_alt2%.zip