You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove obsolete CMake setup action; use runner-preinstalled cmake (#1679)
## 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**](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6698)
(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]
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments