18
18
--location \
19
19
--output " $cmake_formula_path " \
20
20
--show-error \
21
- https://raw.githubusercontent.com/Homebrew/homebrew-core/b4e46db74e74a8c1650b38b1da222284ce1ec5ce\
22
- /Formula/c/cmake.rb
21
+ https://raw.githubusercontent.com/Homebrew/homebrew-core/b4e46db74e74a8c1650b38b1da222284ce1ec5ce/Formula/c/cmake.rb
23
22
brew install --formula " $cmake_formula_path "
24
23
25
24
# Install a version of `task` < 3.43 to avoid https://github.com/y-scope/clp/issues/872
29
28
--location \
30
29
--output " $task_formula_path " \
31
30
--show-error \
32
- https://raw.githubusercontent.com/Homebrew/homebrew-core/356f8408263b6a06e8f5f83cad574773d8054e1c\
33
- /Formula/g/go-task.rb
31
+ https://raw.githubusercontent.com/Homebrew/homebrew-core/356f8408263b6a06e8f5f83cad574773d8054e1c/Formula/g/go-task.rb
34
32
brew install --formula " $task_formula_path "
35
33
36
34
rm -rf " $formula_dir "
@@ -48,25 +46,25 @@ brew install \
48
46
xz \
49
47
zstd
50
48
51
- if [[ -n " ${GITHUB_ENV } " ] ]; then
49
+ if [ " ${GITHUB_ACTIONS :- } " == " true " ]; then
52
50
LLVM_PREFIX=$( brew --prefix llvm@16)
53
51
{
54
52
echo " LLVM_PREFIX=$LLVM_PREFIX "
55
53
echo " CC=$LLVM_PREFIX /bin/clang"
56
54
echo " CXX=$LLVM_PREFIX /bin/clang++"
57
55
echo " AR=$LLVM_PREFIX /bin/llvm-ar"
58
56
echo " RANLIB=$LLVM_PREFIX /bin/llvm-ranlib"
59
- } >> " $GITHUB_ENV "
57
+ } >> " $GITHUB_ENV "
60
58
fi
61
59
62
60
# Install pkg-config if it isn't already installed
63
61
# NOTE: We might expect that pkg-config is installed through brew, so trying to install it again
64
62
# would be harmless; however, in certain environments, like the macOS GitHub hosted runner,
65
63
# pkg-config is installed by other means, meaning a brew install would cause conflicts.
66
- if ! command -v pkg-config ; then
67
- brew install pkg-config
64
+ if ! command -v pkg-config; then
65
+ brew install pkg-config
68
66
fi
69
67
70
68
# TODO: https://github.com/y-scope/clp/issues/795
71
- script_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
69
+ script_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd) "
72
70
" ${script_dir} /../check-cmake-version.sh"
0 commit comments