build(jenkins): jenkins build scripts for Windows and Ubuntu

This commit is contained in:
trleasher-intel
2021-02-09 08:02:21 -07:00
parent c4de327e7e
commit 6cd660a7af
4 changed files with 87 additions and 0 deletions

23
scripts/jenkins-pre-build.cmd Executable file
View File

@@ -0,0 +1,23 @@
:: Build script
:: - Windows 10
:: - Visual Studio 2019
:: - Git
::
:: IMPORTANT!!!
:: Open "x64 Native Command Tool Prompt for VS 2019" as Administrator.
::
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
REM current dir - RPC source directory
set VCPKG_DIR=C:\opt\vcpkg-source
cd %VCPKG_DIR%
REM build vcpkg
git clone --branch 2020.11-1 https://github.com/microsoft/vcpkg.git
cd vcpkg
cmd /c bootstrap-vcpkg.bat
REM install CPPRestSDK
cmd /c vcpkg install cpprestsdk[websockets]:x64-windows-static