Skip to content

Commit 9e596c8

Browse files
kraenhansenclaude
andauthored
ci: pin CMake on macOS weak-node-api tests (#375)
The weak-node-api-tests job invokes cmake directly on macos-latest with no version pin, so it picks up the runner's default CMake 4.2.x instead of the project's pinned 4.1.2 — the same drift that broke the unit-tests job (#374). This job runs on pushes to main, so leaving it unpinned would turn main red. Install the pinned version via jwlawson/actions-setup-cmake, gated to macOS runners, matching the unit-tests and test-macos jobs. Claude-Session: https://claude.ai/code/session_01UCN2h9xbyn4yhxfVZyMzAm Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b035b5d commit 9e596c8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ jobs:
125125
uses: hendrikmuhs/ccache-action@v1.2
126126
with:
127127
key: ${{ github.job }}-${{ runner.os }}
128+
# macOS runners ship a newer CMake than the project supports; pin it to match the version used elsewhere in CI
129+
- name: Install compatible CMake version
130+
if: runner.os == 'macOS'
131+
uses: jwlawson/actions-setup-cmake@v2
132+
with:
133+
cmake-version: ${{ env.CMAKE_VERSION }}
128134
- run: npm ci
129135
- run: npm run build
130136
- name: Prepare weak-node-api

0 commit comments

Comments
 (0)