-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappveyor.yml
48 lines (41 loc) · 2.21 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
version: '{build}'
skip_commits:
files:
- README.md
image: Visual Studio 2022
init:
- ps: if (0) { iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) } #rdp debug
build_script:
# add this line or specify Platform
#- '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64_x86'
- set vc_inc_arch=SSE2
#- call msbuild /m /p:Configuration=Release;Platform=x86 "%APPVEYOR_BUILD_FOLDER%\visual studio\suspend.sln" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- call msbuild /m /p:Configuration=Release;Platform=x86 "%APPVEYOR_BUILD_FOLDER%\visual studio\suspend.sln" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cd "visual studio\Release"
- '7z a %APPVEYOR_BUILD_FOLDER%\suspend.7z -mx=9 -myx=9 *.exe'
- '7z a "%APPVEYOR_BUILD_FOLDER%\suspend with docs.7z" -mx=9 -myx=9 *.exe "%APPVEYOR_BUILD_FOLDER%\visual studio\README.txt" "%APPVEYOR_BUILD_FOLDER%\visual studio\*.cmd"'
# x86 AVX2
- set vc_inc_arch=AVX2
- call msbuild /m /p:Configuration=Release;Platform=x86 -t:rebuild "%APPVEYOR_BUILD_FOLDER%\visual studio\suspend.sln" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- '7z a %APPVEYOR_BUILD_FOLDER%\suspend-AVX2.7z -mx=9 -myx=9 *.exe'
- call msbuild /m /p:Configuration=Release;Platform=ARM64 "%APPVEYOR_BUILD_FOLDER%\visual studio\suspend.sln" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- move /y "%APPVEYOR_BUILD_FOLDER%\visual studio\ARM64\Release\*.exe" .
- '7z a %APPVEYOR_BUILD_FOLDER%\suspend-ARM64.7z -mx=9 -myx=9 *.exe'
#x64
#- call msbuild /m /p:Configuration=Release;Platform=x64 -t:rebuild "%APPVEYOR_BUILD_FOLDER%\visual studio\suspend.sln" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
#- '7z a %APPVEYOR_BUILD_FOLDER%\suspend-x64.7z -mx=9 -myx=9 *.exe'
- set release=%APPVEYOR_REPO_COMMIT:~0,7%
test: off
artifacts:
- path: suspend.7z
- path: suspend-AVX2.7z
- path: suspend-ARM64.7z
- path: 'suspend with docs.7z'
deploy:
- provider: Environment
name: github git
tag: git
release: $(release)
force_update: true
on:
branch: master