mirror of
https://github.com/voiceip/tinyphone
synced 2026-08-07 02:26:03 -04:00
- Use windows-2019 for win github ci - Use scoop/devel - Update Boost to 1.74.0 (boost_1_74_0-msvc-14.2-32.exe) - Update VS Project to 2019 - Update WindowsTargetPlatformVersion to 10.0 - Update PlatformToolset to v142
106 lines
3.8 KiB
YAML
106 lines
3.8 KiB
YAML
version: 1.0.{build}
|
|
image: Visual Studio 2019
|
|
clone_depth: 5
|
|
init:
|
|
- ps: >-
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
git config --global url.https://github.com/.insteadOf git@github.com:
|
|
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
|