-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.appveyor.yml
101 lines (81 loc) · 3.05 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: '{branch}-{build}'
# Do not build on tags (GitHub only)
skip_tags: true
# manual mode
branches:
except:
- /.*/
#---------------------------------#
# environment configuration #
#---------------------------------#
# environment variables
# build system info: https://www.appveyor.com/docs/windows-images-software/
image: Visual Studio 2022
environment:
REPO_DIR: &REPO_DIR c:\project # directory created by appveyor
SOL_FILE: nppAutoDetectIndent.sln
MSBUILD_CMD_ARM64: /maxcpucount /property:Configuration=Release,Platform=ARM64
MSBUILD_CMD_X86: /maxcpucount /property:Configuration=Release,Platform=x86
MSBUILD_CMD_X64: /maxcpucount /property:Configuration=Release,Platform=x64
# clone directory
clone_folder: *REPO_DIR
#---------------------------------#
# build configuration #
#---------------------------------#
# scripts to run before build
before_build:
- cd "%REPO_DIR%"
- git submodule update --init --recursive --depth 1
# to run your custom scripts instead of automatic MSBuild
build_script:
- cd "%REPO_DIR%\src"
- msbuild %SOL_FILE% %MSBUILD_CMD_ARM64%
- msbuild %SOL_FILE% %MSBUILD_CMD_X86%
- msbuild %SOL_FILE% %MSBUILD_CMD_X64%
# scripts to run before deployment
after_build:
- cd "%REPO_DIR%\src\ARM64\Release"
- 7z a -mx9 "arm64.zip" "nppAutoDetectIndent.dll"
- 'powershell -Command "& { $hash = (Get-FileHash -Algorithm SHA256 "arm64.zip").hash.ToString().toLower(); Write-Host $hash " *arm64.zip"; }" > "arm64.zip.sha256"'
- move "arm64.zip" "%REPO_DIR%"
- move "arm64.zip.sha256" "%REPO_DIR%"
- cd "%REPO_DIR%\src\Release"
- 7z a -mx9 "x86.zip" "nppAutoDetectIndent.dll"
- 'powershell -Command "& { $hash = (Get-FileHash -Algorithm SHA256 "x86.zip").hash.ToString().toLower(); Write-Host $hash " *x86.zip"; }" > "x86.zip.sha256"'
- move "x86.zip" "%REPO_DIR%"
- move "x86.zip.sha256" "%REPO_DIR%"
- cd "%REPO_DIR%\src\x64\Release"
- 7z a -mx9 "x64.zip" "nppAutoDetectIndent.dll"
- 'powershell -Command "& { $hash = (Get-FileHash -Algorithm SHA256 "x64.zip").hash.ToString().toLower(); Write-Host $hash " *x64.zip"; }" > "x64.zip.sha256"'
- move "x64.zip" "%REPO_DIR%"
- move "x64.zip.sha256" "%REPO_DIR%"
#---------------------------------#
# tests configuration #
#---------------------------------#
# to disable automatic tests
test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: arm64.zip
name: arm64 plugin
- path: arm64.zip.sha256
name: checksum
- path: x86.zip
name: x86 plugin
- path: x86.zip.sha256
name: checksum
- path: x64.zip
name: x64 plugin
- path: x64.zip.sha256
name: checksum