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

31 lines
975 B
Bash
Raw Normal View History

2020-10-07 13:49:40 +05:00
#!/bin/bash -e
################################################################################
2023-11-22 21:49:23 +01:00
## File: install-vcpkg.sh
## Desc: Install vcpkg
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/etc-environment.sh
2022-10-25 09:30:50 +02:00
# Set env variable for vcpkg
VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg
setEtcEnvironmentVariable "VCPKG_INSTALLATION_ROOT" "${VCPKG_INSTALLATION_ROOT}"
# Install vcpkg
2022-10-25 09:30:50 +02:00
git clone https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT
2020-04-17 10:38:10 +00:00
2022-10-25 09:30:50 +02:00
$VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh
# workaround https://github.com/microsoft/vcpkg/issues/27786
mkdir -p /root/.vcpkg/ $HOME/.vcpkg
touch /root/.vcpkg/vcpkg.path.txt $HOME/.vcpkg/vcpkg.path.txt
2022-10-25 09:30:50 +02:00
$VCPKG_INSTALLATION_ROOT/vcpkg integrate install
chmod 0777 -R $VCPKG_INSTALLATION_ROOT
ln -sf $VCPKG_INSTALLATION_ROOT/vcpkg /usr/local/bin
rm -rf /root/.vcpkg $HOME/.vcpkg
2023-11-22 21:49:23 +01:00
invoke_tests "Tools" "Vcpkg"