From e60ea3e550839c5eaaffe886fcf3764af914e2f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Fri, 17 Jul 2026 22:15:44 +0200 Subject: [PATCH] ci: pin CMake on macOS weak-node-api tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01UCN2h9xbyn4yhxfVZyMzAm --- .github/workflows/check.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 20744810..4f8a519e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -125,6 +125,12 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2 with: key: ${{ github.job }}-${{ runner.os }} + # macOS runners ship a newer CMake than the project supports; pin it to match the version used elsewhere in CI + - name: Install compatible CMake version + if: runner.os == 'macOS' + uses: jwlawson/actions-setup-cmake@v2 + with: + cmake-version: ${{ env.CMAKE_VERSION }} - run: npm ci - run: npm run build - name: Prepare weak-node-api