forked from bruderstein/nppPluginManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
68 lines (55 loc) · 2.11 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
version: 1.4.12.{build}
image: Visual Studio 2022
environment:
matrix:
- PlatformToolset: v143
platform:
- x64
- Win32
configuration:
- Release
- Debug
- Debug-xml-test
install:
- git submodule -q update --init
- 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 "%PlatformToolset%"=="v143" call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- mkdir NotepadTest\unicode\plugins
- mkdir NotepadTest\unicode\updater
- mkdir NotepadTest\x64\plugins
- mkdir NotepadTest\x64\updater
- copy paths.props.appveyor paths.props
- msbuild PluginManager.sln /m /p:configuration="%configuration%" /p:platform="%platform_input%" /p:PlatformToolset="%PlatformToolset%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v143") {
if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Release") {
$PluginManagerZipFileName = "PluginManager_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
7z a $PluginManagerZipFileName .\NotepadTest\x64\*
}
if ($env:PLATFORM_INPUT -eq "Win32" -and $env:CONFIGURATION -eq "Release") {
$PluginManagerZipFileName = "PluginManager_$($env:APPVEYOR_REPO_TAG_NAME)_UNI.zip"
7z a $PluginManagerZipFileName .\NotepadTest\unicode\*
}
}
artifacts:
- path: PluginManager_*.zip
name: releases
deploy:
provider: GitHub
auth_token:
secure: z5nuqsjm/L3HYsjSkMsVBH8EPAK17v3OOXzZDyp9hWx9J6Ff/gDYtbzWMoUtW0dI
artifact: releases
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true
PlatformToolset: v143
configuration: Release