Skip to content

Remove obsolete CMake setup action; use runner-preinstalled cmake#1679

Merged
bghgary merged 3 commits into
BabylonJS:masterfrom
bghgary:bump-cmake-3.31.8
Apr 27, 2026
Merged

Remove obsolete CMake setup action; use runner-preinstalled cmake#1679
bghgary merged 3 commits into
BabylonJS:masterfrom
bghgary:bump-cmake-3.31.8

Conversation

@bghgary
Copy link
Copy Markdown
Contributor

@bghgary bghgary commented Apr 27, 2026

Context

CI started failing today on every fresh runner with:

##[error]Unable to find version matching 3.31.6

from jwlawson/actions-setup-cmake@v2. The GitHub release for v3.31.6 still exists, and so do 3.31.8 and 3.31.12, but the action's resolver can't find any of them right now. Bumping the pin to other 3.31.x patches did not help.

Why the pin existed

The original Azure Pipelines cmake.yml script (pre-#1661) had this comment:

# Force using older cmake See https://gitlab.kitware.com/cmake/cmake/-/issues/22021

That CMake bug — MACOSX_PACKAGE_LOCATION mishandling for INTERFACE_SOURCES — was fixed in CMake 3.22 (MR!6698). The pin carried over into #1661 as part of the faithful Azure-→-Actions port.

Why we don't need to pin anymore

  • CMakeLists.txt requires cmake_minimum_required(VERSION 3.21).
  • All current GitHub-hosted runner images (Ubuntu, Windows, macOS) ship CMake ≥ 3.30.
  • The original #22021 bug we were avoiding is fixed in 3.22, well below anything any runner ships today.

Change

Remove the jwlawson/actions-setup-cmake@v2 step (and its CMAKE_VERSION env var) from all 11 workflow files. The runner-preinstalled CMake satisfies our minimum and avoids the broken action altogether.

[Created by Copilot on behalf of @bghgary]

jwlawson/actions-setup-cmake@v2 stopped resolving 3.31.6 today (the GitHub release still exists, but the action's version lookup no longer matches it). 3.31.8 is the latest 3.31.x patch and is still resolvable. Same issue / workaround as DynamoRIO/dynamorio#7872.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 27, 2026 20:29
jwlawson/actions-setup-cmake@v2 fetches only the first 30 GitHub releases. With CMake's release cadence, neither 3.31.6 nor 3.31.8 are still in the first page; only 3.31.9-3.31.12 are. 3.31.12 is the latest 3.31.x patch.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bghgary bghgary changed the title Bump CMAKE_VERSION from 3.31.6 to 3.31.8 Bump CMAKE_VERSION from 3.31.6 to 3.31.12 Apr 27, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the pinned CMake version used by GitHub Actions workflows to restore CI reliability after jwlawson/actions-setup-cmake@v2 stopped resolving 3.31.6 on fresh runners.

Changes:

  • Bump CMAKE_VERSION from 3.31.6 to 3.31.8 across all affected workflows.
  • Keep workflows otherwise unchanged to minimize risk while unblocking CI.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/test-install-win32.yml Updates workflow-level CMAKE_VERSION to a resolvable patch release.
.github/workflows/test-install-macos.yml Updates workflow-level CMAKE_VERSION to a resolvable patch release.
.github/workflows/test-install-linux.yml Updates workflow-level CMAKE_VERSION to a resolvable patch release.
.github/workflows/test-install-ios.yml Updates workflow-level CMAKE_VERSION to a resolvable patch release.
.github/workflows/build-win32.yml Updates workflow-level CMAKE_VERSION used by setup-cmake.
.github/workflows/build-win32-shader.yml Updates workflow-level CMAKE_VERSION used by setup-cmake.
.github/workflows/build-uwp.yml Updates workflow-level CMAKE_VERSION used by setup-cmake.
.github/workflows/build-macos.yml Updates workflow-level CMAKE_VERSION used by setup-cmake.
.github/workflows/build-linux.yml Updates workflow-level CMAKE_VERSION used by setup-cmake.
.github/workflows/build-ios.yml Updates workflow-level CMAKE_VERSION used by setup-cmake.
.github/workflows/build-android.yml Updates workflow-level CMAKE_VERSION used by setup-cmake.

@bghgary bghgary changed the title Bump CMAKE_VERSION from 3.31.6 to 3.31.12 Remove obsolete CMake setup action; use runner-preinstalled cmake Apr 27, 2026
The pin existed because of cmake#22021 (macOS framework bug), fixed in CMake 3.22. Our minimum is 3.21 and runner images ship 3.30+, so the pin is obsolete. Today the jwlawson/actions-setup-cmake@v2 resolver started failing for all 3.31.x patches we tried; removing the action sidesteps that breakage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bghgary bghgary merged commit a5d50ae into BabylonJS:master Apr 27, 2026
28 checks passed
@bghgary bghgary deleted the bump-cmake-3.31.8 branch April 27, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants