mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
* get rid of invoke_tests imports * add sudo * change path to /usr/bin/invoke_tests * create /usr/local/bin dir * remove local variables * fix group owner * set default 775 perm * delete invoke_tests symlink
16 lines
525 B
Bash
16 lines
525 B
Bash
#!/bin/bash -e -o pipefail
|
|
source ~/utils/utils.sh
|
|
|
|
# Set env variable for vcpkg
|
|
VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg
|
|
echo "export VCPKG_INSTALLATION_ROOT=${VCPKG_INSTALLATION_ROOT}" | tee -a ~/.bashrc
|
|
|
|
# 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 -R 0777 $VCPKG_INSTALLATION_ROOT
|
|
ln -sf $VCPKG_INSTALLATION_ROOT/vcpkg /usr/local/bin
|
|
|
|
invoke_tests "Common" "vcpkg"
|