mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
19 lines
696 B
Bash
19 lines
696 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: vcpkg.sh
|
|
## Desc: Installs vcpkg
|
|
################################################################################
|
|
|
|
# Set env variable for vcpkg
|
|
VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg
|
|
echo "VCPKG_INSTALLATION_ROOT=${VCPKG_INSTALLATION_ROOT}" | tee -a /etc/environment
|
|
|
|
# Install vcpkg
|
|
git clone --depth=1 https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT
|
|
|
|
$VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh
|
|
$VCPKG_INSTALLATION_ROOT/vcpkg integrate install
|
|
chmod 0777 -R $VCPKG_INSTALLATION_ROOT
|
|
ln -sf $VCPKG_INSTALLATION_ROOT/vcpkg /usr/local/bin
|
|
|
|
invoke_tests "Tools" "Vcpkg" |