Skip to content

Commit 7716730

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/allow-conditional-esm-consumption
2 parents 0969e95 + 4ce18ed commit 7716730

File tree

2 files changed

+36
-8
lines changed

2 files changed

+36
-8
lines changed

.github/workflows/npm_release.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,15 @@ jobs:
4040
run: |
4141
npm install
4242
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
4552
- name: Get Current Version
4653
run: |
4754
NPM_VERSION=$(node -e "console.log(require('./package.json').version);")
@@ -95,8 +102,15 @@ jobs:
95102
run: |
96103
npm install
97104
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
100114
brew install chargepoint/xcparse/xcparse
101115
npm install -g @edusperoni/junit-cli-report-viewer verify-junit-xml
102116
- name: Prepare

.github/workflows/pull_request.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,15 @@ jobs:
3232
run: |
3333
npm install
3434
python3 -m pip install --upgrade pip six
35-
brew install cmake
36-
[ ! -f /usr/local/bin/cmake ] && ln -s /usr/local/bin/cmake $(which cmake) || true
35+
# Ensure CMake is available without conflicting with pinned Homebrew formula
36+
if ! command -v cmake >/dev/null; then
37+
brew list cmake || brew install cmake
38+
fi
39+
# Some scripts expect cmake at /usr/local/bin; create a shim if needed
40+
if [ ! -x /usr/local/bin/cmake ]; then
41+
sudo mkdir -p /usr/local/bin
42+
sudo ln -sf "$(command -v cmake)" /usr/local/bin/cmake
43+
fi
3744
- name: Get Current Version
3845
run: |
3946
echo NPM_VERSION=$(node -e "console.log(require('./package.json').version);") >> $GITHUB_ENV
@@ -79,8 +86,15 @@ jobs:
7986
run: |
8087
npm install
8188
python3 -m pip install --upgrade pip six
82-
brew install cmake
83-
[ ! -f /usr/local/bin/cmake ] && ln -s /usr/local/bin/cmake $(which cmake) || true
89+
# Ensure CMake is available without conflicting with pinned Homebrew formula
90+
if ! command -v cmake >/dev/null; then
91+
brew list cmake || brew install cmake
92+
fi
93+
# Some scripts expect cmake at /usr/local/bin; create a shim if needed
94+
if [ ! -x /usr/local/bin/cmake ]; then
95+
sudo mkdir -p /usr/local/bin
96+
sudo ln -sf "$(command -v cmake)" /usr/local/bin/cmake
97+
fi
8498
brew install chargepoint/xcparse/xcparse
8599
npm install -g @edusperoni/junit-cli-report-viewer verify-junit-xml
86100
- name: Prepare test folder

0 commit comments

Comments
 (0)