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

28 lines
895 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
2022-11-16 18:31:26 +01:00
# workaround https://github.com/microsoft/vcpkg/issues/27786
mkdir -p /Users/runner/.vcpkg
touch /Users/runner/.vcpkg/vcpkg.path.txt
2020-09-10 14:34:08 +03:00
# Install vcpkg
2022-10-25 09:30:50 +02:00
git clone https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT
$VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh
$VCPKG_INSTALLATION_ROOT/vcpkg integrate install
chmod -R 0777 $VCPKG_INSTALLATION_ROOT
ln -sf $VCPKG_INSTALLATION_ROOT/vcpkg /usr/local/bin
2022-11-16 18:31:26 +01:00
rm -rf /Users/runner/.vcpkg
invoke_tests "Common" "vcpkg"