fluidsynth/.appveyor-vcpkg.yml

51 lines
1.3 KiB
YAML
Raw Normal View History

2018-03-03 19:06:47 +00:00
image:
- Visual Studio 2017
build:
2018-03-03 19:06:47 +00:00
parallel: true
verbosity: detailed
configuration:
- Release
environment:
# update the vcpkg cache even if build fails
APPVEYOR_SAVE_CACHE_ON_ERROR: true
matrix:
- platform: x86
2018-03-03 19:06:47 +00:00
- platform: x64
cache:
- c:\Tools\vcpkg\installed
2018-03-03 19:06:47 +00:00
init:
- set TARGET_PLATFORM=
- if "%platform%"=="x64" ( set TARGET_PLATFORM= Win64)
- if "%platform%"=="ARM" ( set TARGET_PLATFORM= ARM)
- echo %TARGET_PLATFORM%
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set "generator=Visual Studio 15 2017%TARGET_PLATFORM%" && set "toolset=v141_xp" )
2018-03-03 19:06:47 +00:00
- echo %generator%
- echo %toolset%
2018-03-03 19:06:47 +00:00
install:
2018-03-03 19:06:47 +00:00
# make sure the latest version of git is installed
- choco upgrade git -y
- vcpkg install glib:%platform%-windows
build_script:
- mkdir build
- cd build
- cmake -G "%generator%" -T "%toolset%" -Denable-pkgconfig=0 -DCMAKE_TOOLCHAIN_FILE=c:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DNO_GUI=1 ..
2018-04-06 18:28:45 +00:00
- cmake --build . --config Release # build libfluidsynth and fluidsynth exec
- cmake --build . --config Release --target check # build and exec unittests
after_build:
- 7z a fluidsynth-vcpkg-%platform%.zip %APPVEYOR_BUILD_FOLDER%\build\src\Release\*
artifacts:
- path: build/fluidsynth-vcpkg-%platform%.zip
name: FluidSynth