AppVeyor: refactor matrix
This commit is contained in:
parent
fb19345e10
commit
c4b1e1b237
|
@ -2,77 +2,51 @@ version: 'build #{build}'
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- BUILD_TYPE: shared-windows-msvc2013-386
|
- linking: shared
|
||||||
CMAKE_FLAGS: -G "Visual Studio 12 2013"
|
compiler: msvc2013
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
||||||
|
- linking: static
|
||||||
- BUILD_TYPE: static-windows-msvc2013-386
|
compiler: msvc2013
|
||||||
CMAKE_FLAGS: -G "Visual Studio 12 2013" -DBUILD_SHARED_LIBS=OFF
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
||||||
|
- linking: shared
|
||||||
- BUILD_TYPE: shared-windows-msvc2013-amd64
|
compiler: msvc2015
|
||||||
CMAKE_FLAGS: -G "Visual Studio 12 2013 Win64"
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
|
||||||
|
|
||||||
- BUILD_TYPE: static-windows-msvc2013-amd64
|
|
||||||
CMAKE_FLAGS: -G "Visual Studio 12 2013 Win64" -DBUILD_SHARED_LIBS=OFF
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
|
||||||
|
|
||||||
- BUILD_TYPE: shared-windows-msvc2015-386
|
|
||||||
CMAKE_FLAGS: -G "Visual Studio 14 2015"
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
- linking: static
|
||||||
- BUILD_TYPE: static-windows-msvc2015-386
|
compiler: msvc2015
|
||||||
CMAKE_FLAGS: -G "Visual Studio 14 2015" -DBUILD_SHARED_LIBS=OFF
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
- linking: shared
|
||||||
- BUILD_TYPE: shared-windows-msvc2015-amd64
|
compiler: msvc2017
|
||||||
CMAKE_FLAGS: -G "Visual Studio 14 2015 Win64"
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
||||||
|
|
||||||
- BUILD_TYPE: static-windows-msvc2015-amd64
|
|
||||||
CMAKE_FLAGS: -G "Visual Studio 14 2015 Win64" -DBUILD_SHARED_LIBS=OFF
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
||||||
|
|
||||||
- BUILD_TYPE: shared-windows-msvc2017-386
|
|
||||||
CMAKE_FLAGS: -G "Visual Studio 15 2017"
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
|
- linking: static
|
||||||
- BUILD_TYPE: static-windows-msvc2017-386
|
compiler: msvc2017
|
||||||
CMAKE_FLAGS: -G "Visual Studio 15 2017" -DBUILD_SHARED_LIBS=OFF
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
|
- linking: static
|
||||||
- BUILD_TYPE: shared-windows-msvc2017-amd64
|
compiler: mingw
|
||||||
CMAKE_FLAGS: -G "Visual Studio 15 2017 Win64"
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
||||||
|
|
||||||
- BUILD_TYPE: static-windows-msvc2017-amd64
|
|
||||||
CMAKE_FLAGS: -G "Visual Studio 15 2017 Win64" -DBUILD_SHARED_LIBS=OFF
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
||||||
|
|
||||||
- BUILD_TYPE: static-windows-mingw-386
|
|
||||||
MINGW_PATH: C:\msys64\mingw32\bin
|
|
||||||
CMAKE_FLAGS: -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=OFF
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
||||||
|
|
||||||
- BUILD_TYPE: static-windows-mingw-amd64
|
|
||||||
MINGW_PATH: C:\msys64\mingw64\bin
|
|
||||||
CMAKE_FLAGS: -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=OFF
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
|
||||||
|
platform:
|
||||||
|
- Win32
|
||||||
|
- x64
|
||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- if defined MINGW_PATH (
|
- if %compiler%==msvc2013 ( set "CMAKE_GENERATOR=Visual Studio 12 2013" )
|
||||||
set "PATH=%MINGW_PATH%;%PATH:C:\Program Files\Git\usr\bin;=%"
|
else if %compiler%==msvc2015 ( set "CMAKE_GENERATOR=Visual Studio 14 2015" )
|
||||||
)
|
else if %compiler%==msvc2017 ( set "CMAKE_GENERATOR=Visual Studio 15 2017" )
|
||||||
|
else if %compiler%==mingw ( set "CMAKE_GENERATOR=MinGW Makefiles" )
|
||||||
|
- if %compiler%-%platform%==mingw-Win32 ( set "PATH=C:\msys64\mingw32\bin;%PATH%" )
|
||||||
|
else if %compiler%-%platform%==mingw-x64 ( set "PATH=C:\msys64\mingw64\bin;%PATH%" )
|
||||||
|
else if %platform%==x64 ( set "CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64" )
|
||||||
|
- if %linking%==static ( set CMAKE_FLAGS=-DBUILD_SHARED_LIBS=OFF )
|
||||||
|
- ren "C:\Program Files\Git\usr\bin\sh.exe" _sh.exe
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- mkdir build
|
- md build && cd build
|
||||||
- if defined MINGW_PATH (
|
- cmake -G "%CMAKE_GENERATOR%" %CMAKE_FLAGS% ..
|
||||||
pushd build && cmake %CMAKE_FLAGS% .. && mingw32-make tester examples && popd
|
- if %compiler%==mingw ( mingw32-make tester examples )
|
||||||
) else (
|
else ( msbuild libui.sln /t:Build /p:Configuration=Release /p:Platform=%platform% )
|
||||||
pushd build && cmake %CMAKE_FLAGS% .. && msbuild libui.sln /t:Build /p:Configuration=Release && popd
|
|
||||||
)
|
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
- dir /S build\out
|
- if %platform%==x64 ( set "platform=amd64" ) else ( set "platform=386" )
|
||||||
|
- echo set "target=%linking%-windows-%compiler%-%platform%"
|
||||||
|
- cd %APPVEYOR_BUILD_FOLDER%
|
||||||
|
- dir /S build\out
|
||||||
|
|
Loading…
Reference in New Issue