-
Notifications
You must be signed in to change notification settings - Fork 36
/
appveyor.yml
106 lines (84 loc) · 3.82 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
102
103
104
105
106
version: 1.0.{build}
image: Visual Studio 2019
clone_depth: 5
init:
- ps: >-
$ErrorActionPreference = "Stop"
git config --global url.https://github.com/.insteadOf [email protected]:
branches:
only:
- master
install:
- appveyor DownloadFile https://onboardcloud.dl.sourceforge.net/project/boost/boost-binaries/1.74.0/boost_1_74_0-msvc-14.2-32.exe
- call boost_1_74_0-msvc-14.2-32.exe /SILENT
- ps : |
ls "C:\local\boost_1_74_0"
# Install Scoop
iwr -useb get.scoop.sh -outfile 'install_scoop.ps1'
.\install_scoop.ps1 -RunAsAdmin
# Install Git & other tools
scoop install git wget cmake openssh unzip make sed
configuration: Release
build_script:
- pwsh: |
# $ErrorActionPreference="Stop"
$BuildMode="Release"
set-psdebug -trace 0
Write-Host "`nUpdating Submodules......"
git submodule -q update --init
cmd /c subst E: C:\projects\tinyphone
pushd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools"
cmd /c "VsDevCmd.bat&set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
popd
Write-Host "`nVisual Studio 2019 Command Prompt variables set." -ForegroundColor Yellow
cd E:\lib\curl\
ls
.\buildconf.bat
cd E:\lib\curl\winbuild
where.exe msbuild.exe
nmake /f Makefile.vc mode=dll VC=19 DEBUG=no
cmd /c MKLINK /D E:\lib\curl\builds\libcurl-vc-x86-release-dll-ipv6-sspi-winssl E:\lib\curl\builds\libcurl-vc19-x86-release-dll-ipv6-sspi-winssl
cmd /c .\libcurl-vc19-x86-release-dll-ipv6-sspi-winssl\bin\curl.exe https://wttr.in/bangalore
#G729
cd E:\lib\bcg729\build\
cmake .. -A Win32
msbuild /m bcg729.sln /p:Configuration=$BuildMode /p:Platform=Win32 /p:PlatformToolset=v142
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
cd E:\lib\cryptopp
msbuild /m cryptlib.vcxproj /p:Configuration=$BuildMode /p:Platform=Win32 /p:PlatformToolset=v142
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
$wc = New-Object net.webclient; $wc.Downloadfile("https://download.steinberg.net/sdk_downloads/asiosdk_2.3.3_2019-06-14.zip", "E:\lib\portaudio\src\hostapi\asio\asiosdk_2.3.3_2019-06-14.zip")
cd E:\lib\portaudio\src\hostapi\asio
unzip asiosdk_2.3.3_2019-06-14.zip
mv asiosdk_2.3.3_2019-06-14 ASIOSDK
cd E:\lib\portaudio\build\msvc
msbuild /m portaudio.sln /p:Configuration=$BuildMode /p:Platform=Win32 /p:PlatformToolset=v142 /p:WindowsTargetPlatformVersion=10.0
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
cd E:\lib\pjproject
msbuild /m pjproject-vs14.sln -target:libpjproject:Rebuild /p:Configuration=$BuildMode-Static /p:Platform=Win32 /p:PlatformToolset=v142
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
cd E:\lib\statsd-cpp
cmake .
msbuild /m statsd-cpp.vcxproj /p:Configuration=$BuildMode /p:Platform=Win32 /p:PlatformToolset=v142 /p:WindowsTargetPlatformVersion=10.0
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
cd E:\tinyphone
sed -i 's/stampver.inf.*\$/stampver.inf $/g' tinyphone.vcxproj
msbuild /m tinyphone.sln /p:Configuration=$BuildMode /p:Platform=x86 /p:PlatformToolset=v142 /p:WindowsTargetPlatformVersion=10.0
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
Write-Host "`nBuild Completed." -ForegroundColor Yellow
artifacts:
# pushing a single file
- path: tinyphone\Release\tinyphone.exe
- path: tinyphone-installer\bin\Release\tinyphone_installer.msi
- path: lib\curl\builds\libcurl-vc-x86-release-dll-ipv6-sspi-winssl\bin\libcurl.dll
- path: lib\portaudio\build\msvc\Win32\Release\portaudio_x86.dll
notifications:
- provider: GitHubPullRequest
on_build_success: true
on_build_failure: true
on_build_status_changed: false