2015-06-02 23:11:09 +02:00
version : "{build}"
2015-07-12 00:45:42 +02:00
branches :
only :
2015-12-27 20:00:52 +01:00
- master
- /openmw-.*$/
2015-07-12 00:45:42 +02:00
- appveyor
2016-08-28 21:42:48 +02:00
environment :
matrix :
2018-05-20 17:17:04 +02:00
- msvc : 2017
2018-05-20 18:24:06 +02:00
APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
2019-10-21 14:28:12 +02:00
- msvc : 2019
APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
2016-08-28 21:42:48 +02:00
2015-06-02 23:11:09 +02:00
platform :
2018-05-20 17:17:04 +02:00
- x64
2015-06-08 02:26:23 +02:00
2016-08-28 21:42:48 +02:00
configuration :
2018-05-24 22:51:25 +04:00
# - Debug
2018-05-26 19:51:50 +04:00
- Release
# - RelWithDebInfo
2015-06-02 23:11:09 +02:00
2015-12-27 20:00:52 +01:00
# We want the git revision for versioning,
# so shallow clones don't work.
2015-12-24 22:39:07 +01:00
clone_depth : 1
2015-06-03 01:41:45 +02:00
2015-06-02 23:50:52 +02:00
cache :
2022-01-18 23:29:45 +00:00
- C:\projects\openmw\deps\Bullet-2.89-msvc2017-win64-double.7z
- C:\projects\openmw\deps\MyGUI-3.4.1-msvc2017-win64.7z
- C:\projects\openmw\deps\MyGUI-3.4.1-msvc2019-win64.7z
- C:\projects\openmw\deps\OSGoS-3.6.5-b02abe2-msvc2017-win64.7z
- C:\projects\openmw\deps\OSGoS-3.6.5-b02abe2-msvc2019-win64.7z
- C:\projects\openmw\deps\ffmpeg-4.2.2-dev-win64.zip
- C:\projects\openmw\deps\ffmpeg-4.2.2-win64.zip
- C:\projects\openmw\deps\OpenAL-Soft-1.20.1.zip
- C:\projects\openmw\deps\SDL2-2.0.18.zip
2015-06-02 23:50:52 +02:00
2015-06-02 23:11:09 +02:00
clone_folder : C:\projects\openmw
2017-03-22 11:10:57 +09:00
install :
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
2015-06-02 23:11:09 +02:00
before_build :
2018-11-01 00:20:10 +03:00
- cmd : git submodule update --init --recursive
2021-05-07 11:04:49 +04:00
- cmd : sh %APPVEYOR_BUILD_FOLDER%\CI\before_script.msvc.sh -c %configuration% -p %PLATFORM% -v %msvc% -V -i %APPVEYOR_BUILD_FOLDER%\install
2015-07-12 00:45:42 +02:00
build_script :
2016-08-28 21:59:13 +02:00
- cmd : if %PLATFORM%==x64 set build=MSVC%msvc%_64
2015-07-12 00:45:42 +02:00
- cmd : msbuild %build%\OpenMW.sln /t:Build /p:Configuration=%configuration% /m:2 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
2020-05-10 12:45:56 +02:00
- cmd : cmake --install %build% --config %configuration%
2015-06-08 02:26:23 +02:00
2018-05-24 22:49:53 +04:00
after_build :
2020-05-10 12:45:56 +02:00
- cmd : if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%.zip %APPVEYOR_BUILD_FOLDER%\install -xr"!*.pdb"
2018-05-26 19:51:50 +04:00
#- cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%_pdb.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\%configuration%\*.pdb
2018-05-24 22:49:53 +04:00
2015-06-08 02:26:23 +02:00
test : off
2015-12-27 20:00:52 +01:00
#notifications:
# - provider: Email
# to:
2018-03-13 21:58:52 +03:00
# -
2015-12-27 20:00:52 +01:00
# on_build_failure: true
# on_build_status_changed: true
2018-05-24 22:49:53 +04:00
artifacts :
2018-05-26 19:51:50 +04:00
- path : OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%.zip
name : OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%
#- path: OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%_pdb.zip
# name: OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%_pdb