mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
appveyor: switch to Previous Visual Studio 2019 (VS issues after update)
After update [1] of the Visual Studio 2019 image cmake unable to find path to the c compiler [2]: cmake : CMake Error at CMakeLists.txt:47 (project): At line:1 char:1 + cmake -G 'Visual Studio 16 2019' -A x64 .. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (CMake Error at ...t:47 (project)::String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError The CMAKE_C_COMPILER: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe is not a full path to an existing compiler tool. [1]: https://github.com/appveyor/ci/issues/3231 https://www.appveyor.com/updates/2019/12/09/ [2]: https://ci.appveyor.com/project/libevent/libevent/builds/29431286/job/a68h7dn9rcride9g
This commit is contained in:
parent
f76456b0dc
commit
ea12428db6
12
appveyor.yml
12
appveyor.yml
@ -3,7 +3,7 @@ version: 2.2.0.{build}
|
||||
|
||||
os:
|
||||
- Visual Studio 2017
|
||||
- Visual Studio 2019
|
||||
- Previous Visual Studio 2019
|
||||
platform:
|
||||
- x64
|
||||
|
||||
@ -67,7 +67,7 @@ environment:
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
|
||||
- EVENT_BUILD_METHOD: "cmake"
|
||||
EVENT_CMAKE_OPTIONS: ""
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: "Previous Visual Studio 2019"
|
||||
- EVENT_BUILD_METHOD: "cmake"
|
||||
EVENT_CMAKE_OPTIONS: "-DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_SAMPLES=ON"
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
|
||||
@ -79,10 +79,10 @@ environment:
|
||||
|
||||
matrix:
|
||||
exclude:
|
||||
- os: Visual Studio 2019
|
||||
- os: Previous Visual Studio 2019
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
|
||||
- os: Visual Studio 2017
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: "Previous Visual Studio 2019"
|
||||
fast_finish: true
|
||||
|
||||
init:
|
||||
@ -119,7 +119,7 @@ build_script:
|
||||
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'Visual Studio 2017') {
|
||||
$env:BUILD_DIR="build-cmake"
|
||||
}
|
||||
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'Visual Studio 2019') {
|
||||
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'Previous Visual Studio 2019') {
|
||||
$env:BUILD_DIR="build-cmake-vs2019"
|
||||
}
|
||||
md $env:BUILD_DIR 2> $null
|
||||
@ -128,7 +128,7 @@ build_script:
|
||||
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'Visual Studio 2017') {
|
||||
$env:cmake_cmd="cmake -G 'Visual Studio 15 2017 Win64' .. $env:EVENT_CMAKE_OPTIONS"
|
||||
}
|
||||
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'Visual Studio 2019') {
|
||||
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq 'Previous Visual Studio 2019') {
|
||||
$env:cmake_cmd="cmake -G 'Visual Studio 16 2019' -A x64 .. $env:EVENT_CMAKE_OPTIONS"
|
||||
}
|
||||
Invoke-Expression $env:cmake_cmd
|
||||
|
Loading…
x
Reference in New Issue
Block a user