-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathappveyor.yml
55 lines (46 loc) · 1.7 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
version: 5.0.0.{build}
image: Visual Studio 2022
platform:
- x64
- x86
configuration:
- Release
- Debug
install:
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="x86" set archi=x86
before_build:
- nuget restore
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- msbuild WakaTime.sln /m /p:configuration="%configuration%" /p:platform="%platform%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-
if ($env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "WakaTime\bin\$env:PLATFORM\$env:CONFIGURATION\WakaTime.dll" -FileName WakaTime.dll
}
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" ) {
if($env:PLATFORM -eq "x64" -or $env:PLATFORM -eq "x86"){
$ZipFileName = "notepadpp-wakatime_$($env:APPVEYOR_REPO_TAG_NAME)_$($env:PLATFORM).zip"
Remove-Item WakaTime\bin\$env:PLATFORM\$env:CONFIGURATION\*.exp
Remove-Item WakaTime\bin\$env:PLATFORM\$env:CONFIGURATION\*.lib
Remove-Item WakaTime\bin\$env:PLATFORM\$env:CONFIGURATION\*.pdb
7z a $ZipFileName "$($env:APPVEYOR_BUILD_FOLDER)\WakaTime\bin\$env:PLATFORM\$env:CONFIGURATION\*"
}
}
artifacts:
- path: notepadpp-wakatime_*.zip
name: releases
- path: '**\WakaTime.dll'
deploy:
provider: GitHub
auth_token:
secure: !!TODO, see https://www.appveyor.com/docs/deployment/github/#provider-settings!!
artifact: releases
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true
configuration: Release