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

19
scripts/jenkins-pre-build.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Jenkins Pre Build script
# - Ubuntu 18.04
#
sudo apt install git cmake build-essential curl zip unzip tar pkg-config
## current dir - RPC source directory
export BASE_DIR="$PWD"
cd "$BASE_DIR"/rpc
## build vcpkg
git clone --branch 2020.11-1 https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
## install CPPRestSDK
./vcpkg install cpprestsdk[websockets]