-
Notifications
You must be signed in to change notification settings - Fork 93
/
appveyor.yml
74 lines (59 loc) · 2.31 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: 0.30.19.{build}
image: Visual Studio 2022
environment:
matrix:
- PlatformToolset: v143
platform:
- x64
- Win32
#- arm64
configuration:
- Release
#- Debug
install:
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="x64" set platform_input=x64
- if "%platform%"=="Win32" set archi=x86
- if "%platform%"=="Win32" set platform_input=Win32
- if "%platform%"=="arm64" set archi=amd64_arm64
- if "%platform%"=="arm64" set platform_input=ARM64
- if "%PlatformToolset%"=="v142" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
- if "%PlatformToolset%"=="v143" call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
#avoid issues with preinstalled openssl versions
- ps: Remove-Item -Recurse -Force C:\OpenSSL*
#use strawberry perl instead of the git one to avoid missing module issue for openssl build on vs2019 image
- set PATH=C:\Strawberry\perl\bin;%PATH:C:\Program Files\Git\usr\bin;=%
before_build:
- ps: |
Write-Output "Configuration: $env:CONFIGURATION"
Write-Output "Platform: $env:PLATFORM_INPUT"
$generator = switch ($env:PLATFORMTOOLSET)
{
"v143" {"Visual Studio 17 2022"}
"v142" {"Visual Studio 16 2019"}
"v141" {"Visual Studio 15 2017"}
"v141_xp" {"Visual Studio 15 2017"}
"v140_xp" {"Visual Studio 14 2015"}
"v120_xp" {"Visual Studio 12 2013"}
}
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
# Python 3 needed for python build_3rdparty.py
- set PATH=C:\Python312-x64;C:\Python312-x64\Scripts;%PATH%
- mkdir _build
- cd _build
- ps: |
cmake -G "$generator" -A "$env:PLATFORM_INPUT" -T "$env:PLATFORMTOOLSET" ..
if ($LastExitCode -ne 0) {
throw "Exec: $ErrorMessage"
}
& cmake --build . --config $env:CONFIGURATION --target package -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
if ($LastExitCode -ne 0) {
throw "Exec: $ErrorMessage"
}
after_build:
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-
if ($env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "_build\Release\NppFTP.dll" -FileName "NppFTP.dll"
}