forked from pcman-bbs/pcman-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
47 lines (40 loc) · 1.24 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
version: '{build}'
image: Visual Studio 2019
init:
- ps: Set-WinSystemLocale zh-TW
- ps: Start-Sleep -s 10
- ps: Restart-Computer
- ps: Start-Sleep -s 5
install:
# update vcpkg
- cd "C:\Tools\vcpkg"
- git pull
- .\bootstrap-vcpkg.bat
- vcpkg integrate install
- vcpkg remove --outdated --recurse
- copy /y "%APPVEYOR_BUILD_FOLDER%\hack\portfile.cmake" C:\Tools\vcpkg\ports\libwebsockets\portfile.cmake
- vcpkg install libwebsockets
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: .\Scripts\BeforeBuild.ps1
build_script:
#- call msbuild /m /p:Configuration=Release %APPVEYOR_BUILD_FOLDER%\PCMan.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- call msbuild /m /p:Configuration=Release %APPVEYOR_BUILD_FOLDER%\Lite\Lite.vcxproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- ps: .\Scripts\DownloadNonFree.ps1
- ps: .\Scripts\AfterBuild.ps1
- set release=%APPVEYOR_REPO_COMMIT:~0,7%
artifacts:
- path: Lite\Release\PCMan.zip
#- path: Combo\Release\PCManCB.zip
- path: Release\PCMan.exe
#- path: Release\PCManCB.exe
cache:
- c:\tools\vcpkg\installed\ -> appveyor.yml
deploy:
provider: GitHub
tag: git
release: $(release)
auth_token: $(github_auth_token)
force_update: true
on:
branch: master