2020-06-06 03:06:24 -06:00
|
|
|
os: Visual Studio 2019
|
2022-08-11 23:09:54 -06:00
|
|
|
clone_depth: 2
|
2015-11-30 06:12:32 -07:00
|
|
|
configuration:
|
|
|
|
- Release
|
2015-11-23 10:14:07 -07:00
|
|
|
before_build:
|
2022-08-11 23:09:54 -06:00
|
|
|
- git submodule update --init --recursive --depth 2
|
2015-11-23 10:14:07 -07:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-03-07 02:48:59 -07:00
|
|
|
- appveyor DownloadFile https://github.com/jimpark/unsis/releases/download/2.50.0/nsis-2.50.0-Unicode-setup.exe
|
|
|
|
- nsis-2.50.0-Unicode-setup.exe /S /D=C:\Program Files (x86)\NSIS
|
2022-08-11 23:09:54 -06:00
|
|
|
- cmake -G "Visual Studio 16 2019" -T v142 -A win32 -DENABLE_NSIS=ON -DENABLE_STDIO_REDIRECT=ON -DBUILD_VENDORED_LUA=ON -DBUILD_VENDORED_SDL=ON -DBUILD_VENDORED_MEDIA_LIBS=ON ..
|
2015-11-23 10:14:07 -07:00
|
|
|
- cd ..
|
2022-08-11 23:09:54 -06:00
|
|
|
build_script: cmake --build build --config Release --target ALL_BUILD -j
|
2016-03-07 03:35:59 -07:00
|
|
|
after_build:
|
2022-08-11 23:09:54 -06:00
|
|
|
- 7z a compiled-binaries.zip %cd%\build\Release\*.pdb %cd%\build\stratagus.exe %cd%\build\stratagus-midiplayer.exe
|
2015-11-30 06:12:32 -07:00
|
|
|
artifacts:
|
|
|
|
- path: build\Stratagus-*.exe
|
2016-03-07 03:35:59 -07:00
|
|
|
- path: compiled-binaries.zip
|
2015-11-30 06:12:32 -07:00
|
|
|
deploy:
|
2016-03-07 02:48:59 -07:00
|
|
|
- provider: GitHub
|
|
|
|
release: master-builds
|
|
|
|
description: 'Automatic builds from the master branch'
|
|
|
|
auth_token:
|
|
|
|
secure: NMy2KE3EpZTjverxNzEAoBnlV+7VLGvwy3e1WEIrliFy3R1oxuT+AgGUDcRwv9y/
|
2016-03-07 03:35:59 -07:00
|
|
|
artifact: /.*(exe|zip)/
|
2016-03-07 02:48:59 -07:00
|
|
|
draft: false
|
|
|
|
prerelease: true
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
- provider: GitHub
|
|
|
|
release: $(APPVEYOR_REPO_TAG_NAME)
|
|
|
|
description: 'Release'
|
|
|
|
auth_token:
|
|
|
|
secure: NMy2KE3EpZTjverxNzEAoBnlV+7VLGvwy3e1WEIrliFy3R1oxuT+AgGUDcRwv9y/
|
2016-03-07 03:35:59 -07:00
|
|
|
artifact: /.*(exe|zip)/
|
2016-03-07 02:48:59 -07:00
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
on:
|
|
|
|
appveyor_repo_tag: true
|