Files
runner-images/images/macos/scripts/build/install-vcpkg.sh
T

21 lines
746 B
Bash
Raw Normal View History

#!/bin/bash -e -o pipefail
2023-11-28 02:25:03 +01:00
################################################################################
## File: install-vcpkg.sh
## Desc: Install vcpkg
################################################################################
2020-09-10 14:34:08 +03:00
source ~/utils/utils.sh
2022-10-25 09:30:50 +02:00
# Set env variable for vcpkg
VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg
echo "export VCPKG_INSTALLATION_ROOT=${VCPKG_INSTALLATION_ROOT}" | tee -a ~/.bashrc
2020-09-10 14:34:08 +03:00
# Install vcpkg
sudo git clone https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT
sudo $VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh
2022-10-25 09:30:50 +02:00
$VCPKG_INSTALLATION_ROOT/vcpkg integrate install
sudo chmod -R 0777 $VCPKG_INSTALLATION_ROOT
2022-10-25 09:30:50 +02:00
ln -sf $VCPKG_INSTALLATION_ROOT/vcpkg /usr/local/bin
invoke_tests "Common" "vcpkg"