22 lines
465 B
Bash
Executable File
22 lines
465 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Jenkins Pre Build script
|
|
# - Ubuntu 18.04
|
|
#
|
|
|
|
apt update
|
|
apt install git cmake build-essential curl zip unzip tar pkg-config -y
|
|
|
|
## current dir - RPC source directory
|
|
#export BASE_DIR="$PWD"
|
|
|
|
#cd "$BASE_DIR"/rpc
|
|
## build vcpkg
|
|
git -C vcpkg pull || git clone https://github.com/microsoft/vcpkg.git vcpkg
|
|
cd vcpkg
|
|
git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
|
./bootstrap-vcpkg.sh
|
|
|
|
## install CPPRestSDK
|
|
./vcpkg install cpprestsdk[websockets]
|