add appveyor build script (CI for Windows)

This commit is contained in:
gocha 2018-02-05 21:51:21 +09:00
parent ea39685ccd
commit 067f812ef4
1 changed files with 45 additions and 0 deletions

45
appveyor.yml Normal file
View File

@ -0,0 +1,45 @@
version: 1.55-{build}
image: Visual Studio 2017
environment:
matrix:
- generator: "Visual Studio 15"
config: Release Unicode
platform: Win32
arch: win32
output: win32\snes9x.exe
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- generator: "Visual Studio 15"
config: Release Unicode
platform: x64
arch: win32-x64
output: win32\snes9x-x64.exe
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
init:
- git config --global core.autocrlf input
before_build:
- git submodule update --init --recursive
build_script:
- msbuild win32\snes9xw.sln /t:build /p:Configuration="%config%";Platform="%platform%" /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- ps: $env:gitrev = git describe --tags
- ps: $env:my_version = "$env:gitrev"
- set package_name=snes9x-%my_version%-%arch%
- if exist artifacts rmdir /s /q artifacts
- mkdir artifacts
- copy "%output%" artifacts
- copy docs\changes.txt artifacts
- copy docs\snes9x-license.txt artifacts
- copy win32\docs\faqs-windows.txt artifacts
- copy win32\docs\readme-windows.txt artifacts
- 7z a %package_name%.zip .\artifacts\*
artifacts:
- path: $(package_name).zip
name: $(arch)