Add support of MinGW on AppVeyor
parent
19b093efcd
commit
ee73f4b147
24
appveyor.yml
24
appveyor.yml
|
@ -2,19 +2,23 @@ version: "{build}"
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- PlatformToolset: v140_xp
|
- PlatformToolset: mingw-w64
|
||||||
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
QTPath: C:\Qt\5.9.2\mingw53_32
|
||||||
|
|
||||||
|
- PlatformToolset: v140
|
||||||
platform: x64
|
platform: x64
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
QTPath: C:\Qt\5.9.2\msvc2015_64
|
QTPath: C:\Qt\5.9.2\msvc2015_64
|
||||||
ARCHI: amd64
|
ARCHI: amd64
|
||||||
|
|
||||||
- PlatformToolset: v140_xp
|
- PlatformToolset: v140
|
||||||
platform: Win32
|
platform: Win32
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
QTPath: C:\Qt\5.9.2\msvc2015
|
QTPath: C:\Qt\5.9.2\msvc2015
|
||||||
ARCHI: x86
|
ARCHI: x86
|
||||||
|
|
||||||
- PlatformToolset: v141_xp
|
- PlatformToolset: v141
|
||||||
platform: x64
|
platform: x64
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
QTPath: C:\Qt\5.9.2\msvc2017_64
|
QTPath: C:\Qt\5.9.2\msvc2017_64
|
||||||
|
@ -25,8 +29,9 @@ configuration:
|
||||||
#- Debug
|
#- Debug
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if "%PlatformToolset%"=="v140_xp" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
|
- if "%PlatformToolset%"=="mingw-w64" set PATH=C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;%PATH:C:\Program Files\Git\usr\bin;=%
|
||||||
- if "%PlatformToolset%"=="v141_xp" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
|
- if "%PlatformToolset%"=="v140" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
|
||||||
|
- if "%PlatformToolset%"=="v141" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
|
||||||
|
|
||||||
build:
|
build:
|
||||||
verbosity: minimal
|
verbosity: minimal
|
||||||
|
@ -37,8 +42,9 @@ before_build:
|
||||||
Write-Output "Platform: $env:PLATFORM"
|
Write-Output "Platform: $env:PLATFORM"
|
||||||
$generator = switch ($env:PLATFORMTOOLSET)
|
$generator = switch ($env:PLATFORMTOOLSET)
|
||||||
{
|
{
|
||||||
"v141_xp" {"Visual Studio 15 2017"}
|
"v141" {"Visual Studio 15 2017"}
|
||||||
"v140_xp" {"Visual Studio 14 2015"}
|
"v140" {"Visual Studio 14 2015"}
|
||||||
|
"mingw-w64" {"MinGW Makefiles"}
|
||||||
}
|
}
|
||||||
if ($env:PLATFORM -eq "x64")
|
if ($env:PLATFORM -eq "x64")
|
||||||
{
|
{
|
||||||
|
@ -55,11 +61,11 @@ build_script:
|
||||||
- ps: |
|
- ps: |
|
||||||
# Use -DFORCE_LEGACY_OPENSSL=ON to build with the available openssl 1.0.2 of the appveyor build image
|
# Use -DFORCE_LEGACY_OPENSSL=ON to build with the available openssl 1.0.2 of the appveyor build image
|
||||||
# otherwise openssl 1.1.x is required with an additional download and build step
|
# otherwise openssl 1.1.x is required with an additional download and build step
|
||||||
cmake -G "$generator" -T "$env:PLATFORMTOOLSET" -DCMAKE_BUILD_TYPE="$env:CONFIGURATION" -DFORCE_LEGACY_OPENSSL=ON ..
|
cmake -G "$generator" -DCMAKE_BUILD_TYPE="$env:CONFIGURATION" -DFORCE_LEGACY_OPENSSL=ON ..
|
||||||
if ($LastExitCode -ne 0) {
|
if ($LastExitCode -ne 0) {
|
||||||
throw "Exec: $ErrorMessage"
|
throw "Exec: $ErrorMessage"
|
||||||
}
|
}
|
||||||
& cmake --build . --target package --config $env:CONFIGURATION -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
& cmake --build . --target package --config $env:CONFIGURATION
|
||||||
if ($LastExitCode -ne 0) {
|
if ($LastExitCode -ne 0) {
|
||||||
throw "Exec: $ErrorMessage"
|
throw "Exec: $ErrorMessage"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue