2015-08-21 16:56:00 +00:00
|
|
|
version: git-{branch}-{build}
|
2019-02-22 09:49:13 +00:00
|
|
|
image: Visual Studio 2017
|
2018-11-02 11:18:04 +00:00
|
|
|
|
2019-05-17 09:36:43 +00:00
|
|
|
configuration:
|
|
|
|
- fast
|
2019-05-21 15:21:52 +00:00
|
|
|
- RelWithDebInfo
|
2015-08-25 05:49:35 +00:00
|
|
|
|
2019-05-17 09:36:43 +00:00
|
|
|
platform:
|
|
|
|
- x64
|
|
|
|
|
|
|
|
before_build:
|
|
|
|
- cmd: >-
|
|
|
|
if "%CONFIGURATION%"=="RelWithDebInfo" (set BUILD_PATH=build)
|
|
|
|
|
|
|
|
if "%CONFIGURATION%"=="fast" (set BUILD_PATH=shell\linux)
|
|
|
|
|
|
|
|
set EXTRA_PATH=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin\
|
|
|
|
|
|
|
|
set PATH=%EXTRA_PATH%;%PATH%
|
|
|
|
|
|
|
|
if not exist %BUILD_PATH% (mkdir %BUILD_PATH%)
|
|
|
|
|
|
|
|
if "%CONFIGURATION%"=="RelWithDebInfo" (cmake -B %BUILD_PATH% -G "Visual Studio 15 2017 Win64" -DCMAKE_CONFIGURATION_TYPES=RelWithDebInfo)
|
|
|
|
|
|
|
|
cd %BUILD_PATH%
|
|
|
|
|
2019-02-22 09:49:13 +00:00
|
|
|
build_script:
|
2019-05-17 09:36:43 +00:00
|
|
|
- cmd: >-
|
|
|
|
if "%CONFIGURATION%"=="RelWithDebInfo" (msbuild reicast.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll")
|
|
|
|
|
|
|
|
if "%CONFIGURATION%"=="fast" (mingw32-make platform=win32)
|
|
|
|
|
2015-08-25 05:49:35 +00:00
|
|
|
after_build:
|
2019-05-17 09:36:43 +00:00
|
|
|
- cmd: >-
|
|
|
|
if "%CONFIGURATION%"=="RelWithDebInfo" (cd .. && set EXE_PATH=build\RelWithDebInfo\reicast.exe)
|
|
|
|
|
|
|
|
if "%CONFIGURATION%"=="fast" (cd ..\.. && set EXE_PATH=shell\linux\nosym-reicast.exe)
|
|
|
|
|
|
|
|
mkdir artifacts
|
|
|
|
|
|
|
|
move %EXE_PATH% artifacts\reicast-win_%PLATFORM%-%CONFIGURATION%-%APPVEYOR_REPO_COMMIT%.exe
|
|
|
|
|
|
|
|
if "%CONFIGURATION%"=="fast" (copy %EXTRA_PATH%\libgcc_s_seh-1.dll artifacts && copy %EXTRA_PATH%\libwinpthread-1.dll artifacts && copy %EXTRA_PATH%\libgomp-1.dll artifacts)
|
2015-08-25 05:49:35 +00:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: artifacts
|
2019-05-17 09:36:43 +00:00
|
|
|
name: reicast-win_$(PLATFORM)-$(CONFIGURATION)-$(APPVEYOR_REPO_COMMIT)
|
2019-05-29 19:14:34 +00:00
|
|
|
deploy:
|
|
|
|
- provider: S3
|
|
|
|
access_key_id: AKIAJOZQS4H2PHQWYFCA
|
2019-05-29 19:37:03 +00:00
|
|
|
secret_access_key: $S3_SECRET_KEY
|
2019-05-29 19:14:34 +00:00
|
|
|
bucket: flycast-builds
|
|
|
|
folder: 'builds/heads/$(APPVEYOR_REPO_BRANCH)-$(APPVEYOR_REPO_COMMIT)'
|
|
|
|
artifact: reicast-win_$(PLATFORM)-$(CONFIGURATION)-$(APPVEYOR_REPO_COMMIT)
|
2019-05-29 19:16:09 +00:00
|
|
|
set_public: true
|