2018-03-03 19:06:47 +00:00
|
|
|
image:
|
2020-04-08 09:13:42 +00:00
|
|
|
- Visual Studio 2019
|
2017-12-14 18:59:50 +00:00
|
|
|
|
|
|
|
build:
|
2018-03-03 19:06:47 +00:00
|
|
|
parallel: true
|
2017-12-14 18:59:50 +00:00
|
|
|
verbosity: detailed
|
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Release
|
|
|
|
|
|
|
|
environment:
|
|
|
|
# update the vcpkg cache even if build fails
|
|
|
|
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
|
|
|
|
|
|
|
matrix:
|
2020-04-08 09:13:42 +00:00
|
|
|
- platform: ARM
|
2017-12-14 18:59:50 +00:00
|
|
|
- platform: x86
|
2018-03-03 19:06:47 +00:00
|
|
|
- platform: x64
|
2017-12-14 18:59:50 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- c:\Tools\vcpkg\installed
|
|
|
|
|
2018-03-03 19:06:47 +00:00
|
|
|
init:
|
|
|
|
- set TARGET_PLATFORM=
|
2020-04-08 09:13:42 +00:00
|
|
|
- if "%platform%"=="x86" ( set TARGET_PLATFORM=Win32)
|
|
|
|
- if "%platform%"=="x64" ( set TARGET_PLATFORM=x64)
|
|
|
|
- if "%platform%"=="ARM" ( set TARGET_PLATFORM=ARM)
|
2018-03-03 19:06:47 +00:00
|
|
|
- echo %TARGET_PLATFORM%
|
|
|
|
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
|
2020-04-08 09:13:42 +00:00
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set "generator=Visual Studio 16 2019" && set "toolset=v142" )
|
2018-03-03 19:06:47 +00:00
|
|
|
- echo %generator%
|
2018-08-08 18:12:37 +00:00
|
|
|
- echo %toolset%
|
2018-03-03 19:06:47 +00:00
|
|
|
|
2017-12-14 18:59:50 +00:00
|
|
|
install:
|
2018-03-03 19:06:47 +00:00
|
|
|
# make sure the latest version of git is installed
|
2020-04-08 09:13:42 +00:00
|
|
|
- choco upgrade git ninja -y
|
|
|
|
- ninja --version
|
|
|
|
- cmake --version
|
|
|
|
# manually update vcpkg
|
|
|
|
- cd "C:\Tools\vcpkg"
|
|
|
|
- git pull
|
|
|
|
- .\bootstrap-vcpkg.bat
|
|
|
|
- cd %appveyor_build_folder%
|
|
|
|
- vcpkg install glib:%platform%-windows || type C:\Tools\vcpkg\buildtrees\libffi\config-arm-windows-out.log
|
2017-12-14 18:59:50 +00:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2020-04-08 09:13:42 +00:00
|
|
|
- cmake -Werror=dev -G "%generator%" -A %TARGET_PLATFORM% -T "%toolset%" -Denable-pkgconfig=0 -DCMAKE_TOOLCHAIN_FILE=c:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 ..
|
2018-04-06 18:28:45 +00:00
|
|
|
- cmake --build . --config Release # build libfluidsynth and fluidsynth exec
|
2020-04-08 09:13:42 +00:00
|
|
|
- if not "%platform%"=="ARM" ( cmake --build . --config Release --target check ) # build and exec unittests, unless when cross-compiling
|
2017-12-14 18:59:50 +00:00
|
|
|
|
|
|
|
after_build:
|
2018-05-20 08:28:42 +00:00
|
|
|
- 7z a fluidsynth-vcpkg-%platform%.zip %APPVEYOR_BUILD_FOLDER%\build\src\Release\*
|
2017-12-14 18:59:50 +00:00
|
|
|
|
|
|
|
artifacts:
|
2018-05-20 08:28:42 +00:00
|
|
|
- path: build/fluidsynth-vcpkg-%platform%.zip
|
2017-12-14 18:59:50 +00:00
|
|
|
name: FluidSynth
|