Files
runner-images/images/macos/provision/core/commonutils.sh
T

64 lines
924 B
Bash
Raw Normal View History

#!/bin/bash -e -o pipefail
2020-09-10 14:34:08 +03:00
source ~/utils/utils.sh
# TO-DO: Move the list of brew packages and casks to toolset
2020-09-10 14:34:08 +03:00
# brew install
binst_common_utils=(
carthage
cmake
subversion
go
gnupg
llvm
libpq
zstd
packer
helm
aliyun-cli
bazelisk
2020-10-05 22:31:26 +02:00
gh
2020-09-10 14:34:08 +03:00
p7zip
ant
aria2
)
if is_Less_BigSur; then
binst_common_utils+=(
xctool
bats
parallel
)
fi
2020-09-10 14:34:08 +03:00
for package in ${binst_common_utils[@]}; do
echo "Install $package"
brew install $package
done
# brew cask install
2020-09-22 12:32:31 +03:00
bcask_common_utils=(
julia
)
2020-09-22 12:33:10 +03:00
2020-09-22 12:32:31 +03:00
if is_Less_BigSur; then
bcask_common_utils+=(
2020-09-22 12:12:44 +03:00
virtualbox
vagrant
r
)
fi
2020-09-10 14:34:08 +03:00
for package in ${bcask_common_utils[@]}; do
echo "Install $package"
brew cask install $package
done
if ! is_HighSierra; then
brew install swiftlint
fi
# Invoke bazel to download the latest bazel version via bazelisk
bazel