20 lines
392 B
Bash
Executable File
20 lines
392 B
Bash
Executable File
#!/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]
|