File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 40
40
run : |
41
41
npm install
42
42
python3 -m pip install --upgrade pip six
43
- brew install cmake
44
- [ ! -f /usr/local/bin/cmake ] && ln -s /usr/local/bin/cmake $(which cmake) || true
43
+ # Ensure CMake is available without conflicting with pinned Homebrew formula
44
+ if ! command -v cmake >/dev/null; then
45
+ brew list cmake || brew install cmake
46
+ fi
47
+ # Some scripts expect cmake at /usr/local/bin; create a shim if needed
48
+ if [ ! -x /usr/local/bin/cmake ]; then
49
+ sudo mkdir -p /usr/local/bin
50
+ sudo ln -sf "$(command -v cmake)" /usr/local/bin/cmake
51
+ fi
45
52
- name : Get Current Version
46
53
run : |
47
54
NPM_VERSION=$(node -e "console.log(require('./package.json').version);")
@@ -95,8 +102,15 @@ jobs:
95
102
run : |
96
103
npm install
97
104
python3 -m pip install --upgrade pip six
98
- brew install cmake
99
- [ ! -f /usr/local/bin/cmake ] && ln -s /usr/local/bin/cmake $(which cmake) || true
105
+ # Ensure CMake is available without conflicting with pinned Homebrew formula
106
+ if ! command -v cmake >/dev/null; then
107
+ brew list cmake || brew install cmake
108
+ fi
109
+ # Some scripts expect cmake at /usr/local/bin; create a shim if needed
110
+ if [ ! -x /usr/local/bin/cmake ]; then
111
+ sudo mkdir -p /usr/local/bin
112
+ sudo ln -sf "$(command -v cmake)" /usr/local/bin/cmake
113
+ fi
100
114
brew install chargepoint/xcparse/xcparse
101
115
npm install -g @edusperoni/junit-cli-report-viewer verify-junit-xml
102
116
- name : Prepare
You can’t perform that action at this time.
0 commit comments