2020-10-23 17:59:08 +03:00
|
|
|
#!/bin/bash -e -o pipefail
|
2020-09-10 14:34:08 +03:00
|
|
|
source ~/utils/utils.sh
|
2020-09-21 09:46:17 +03:00
|
|
|
|
2021-09-24 13:56:16 +03:00
|
|
|
# Monterey needs future review:
|
2021-11-11 11:23:05 +03:00
|
|
|
# aliyun-cli, gnupg, helm have issues with building from the source code.
|
|
|
|
|
# Added gmp for now, because toolcache ruby needs its libs. Remove it when php starts to build from source code.
|
2020-12-23 22:14:13 +07:00
|
|
|
common_packages=$(get_toolset_value '.brew.common_packages[]')
|
|
|
|
|
for package in $common_packages; do
|
|
|
|
|
echo "Installing $package..."
|
2020-12-28 10:54:25 +03:00
|
|
|
brew_smart_install "$package"
|
2020-09-10 14:34:08 +03:00
|
|
|
done
|
|
|
|
|
|
2020-12-23 22:14:13 +07:00
|
|
|
cask_packages=$(get_toolset_value '.brew.cask_packages[]')
|
|
|
|
|
for package in $cask_packages; do
|
|
|
|
|
echo "Installing $package..."
|
2020-12-22 14:48:31 +07:00
|
|
|
brew install --cask $package
|
2020-09-10 14:34:08 +03:00
|
|
|
done
|
|
|
|
|
|
2022-05-24 23:48:57 +04:00
|
|
|
# Execute AppleScript to change security preferences for virtualbox
|
|
|
|
|
# System Preferences -> Security & Privacy -> General -> Unlock -> Allow -> Not now
|
|
|
|
|
if is_Monterey; then
|
2022-07-08 10:40:48 +02:00
|
|
|
if is_Veertu; then
|
|
|
|
|
retry=10
|
|
|
|
|
while [ $retry -gt 0 ]; do
|
|
|
|
|
{
|
|
|
|
|
osascript -e 'tell application "System Events" to get application processes where visible is true'
|
|
|
|
|
} && break
|
|
|
|
|
|
|
|
|
|
retry=$((retry-1))
|
|
|
|
|
if [ $retry -eq 0 ]; then
|
|
|
|
|
echo "No retry attempts left"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
sleep 10
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
|
2022-05-24 23:48:57 +04:00
|
|
|
osascript $HOME/utils/confirm-identified-developers.scpt $USER_PASSWORD
|
|
|
|
|
fi
|
|
|
|
|
|
2021-01-26 10:44:38 +03:00
|
|
|
# Invoke bazel to download bazel version via bazelisk
|
2020-09-10 14:34:08 +03:00
|
|
|
bazel
|
2020-12-23 22:14:13 +07:00
|
|
|
|
2022-02-11 12:53:36 +03:00
|
|
|
# Install Azure DevOps extension for Azure Command Line Interface
|
|
|
|
|
az extension add -n azure-devops
|
|
|
|
|
|
2022-08-10 13:55:34 +01:00
|
|
|
# Workaround https://github.com/actions/runner-images/issues/4931
|
2022-01-25 20:29:59 +03:00
|
|
|
# by making Tcl/Tk paths the same on macOS 10.15 and macOS 11
|
|
|
|
|
if is_BigSur; then
|
|
|
|
|
version=$(brew info tcl-tk --json | jq -r '.[].installed[].version')
|
|
|
|
|
ln -s /usr/local/Cellar/tcl-tk/$version/lib/libtcl8.6.dylib /usr/local/lib/libtcl8.6.dylib
|
|
|
|
|
ln -s /usr/local/Cellar/tcl-tk/$version/lib/libtk8.6.dylib /usr/local/lib/libtk8.6.dylib
|
|
|
|
|
fi
|
|
|
|
|
|
2021-01-29 16:37:48 +07:00
|
|
|
# Invoke tests for all basic tools
|
|
|
|
|
invoke_tests "BasicTools"
|