Skip to content

Fix macOS CI: update cmake_minimum_required for CMake 4.x, replace deprecated macos-13 runner#5

Merged
mahi97 merged 4 commits intomasterfrom
copilot/fix-cicd-failure-macos
Apr 9, 2026
Merged

Fix macOS CI: update cmake_minimum_required for CMake 4.x, replace deprecated macos-13 runner#5
mahi97 merged 4 commits intomasterfrom
copilot/fix-cicd-failure-macos

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 9, 2026

  • Investigate macOS-15 build failure
  • Root cause: ODE 0.16.4 demo code has double-to-float narrowing errors that fail with stricter Clang on macOS-15
  • Fix BuildODE.cmake: add -DODE_WITH_DEMOS=OFF and -DODE_WITH_TESTS=OFF to skip building unneeded ODE demos/tests
  • Run validation (code review ✅, CodeQL ✅)

… macos-13 runner

- clients/qt/CMakeLists.txt: VERSION 2.8 → 3.10 (CMake 4.x removed < 3.5 compat)
- CMakeLists.txt: VERSION 3.5 → 3.10 (pre-empt upcoming removal of < 3.10 compat)
- build.yaml: replace deprecated macos-13 with macos-15, clean up Homebrew paths

Agent-Logs-Url: https://github.com/mahi97/grSim/sessions/63b6bfd3-c1e9-4877-b17a-5491aba569f2

Co-authored-by: mahi97 <7570279+mahi97@users.noreply.github.com>
Copy link
Copy Markdown

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

This PR updates the project’s CMake minimum required versions and macOS GitHub Actions runner targets to restore/maintain macOS CI compatibility with newer runner images and CMake 4.x behavior.

Changes:

  • Bump cmake_minimum_required to 3.10 in the root CMake project and the Qt client subproject.
  • Update macOS CI matrix to use macos-14/macos-15 instead of the deprecated macos-13.
  • Remove macOS-13-specific Homebrew /usr/local path exports in CI.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
CMakeLists.txt Raises minimum CMake version to avoid CMake 4.x hard errors.
clients/qt/CMakeLists.txt Raises minimum CMake version for the Qt client subproject to configure under CMake 4.x.
.github/workflows/build.yaml Updates macOS runner matrix and Homebrew path exports for Apple Silicon runners.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mahi97 and others added 2 commits April 10, 2026 05:04
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ake 4.x compat

Protobuf 3.6.1, ODE, and vartypes have old cmake_minimum_required that
CMake 4.x (on macOS runners) rejects. Pass CMAKE_POLICY_VERSION_MINIMUM=3.5
to allow these external projects to configure successfully.

Agent-Logs-Url: https://github.com/mahi97/grSim/sessions/838d00c6-d230-4382-801b-9e2b0aa8ae78

Co-authored-by: mahi97 <7570279+mahi97@users.noreply.github.com>
ODE 0.16.4 demo_cylvssphere.cpp has double-to-float narrowing conversions
that fail with the stricter Clang on macOS 15. Since we only need the ODE
library (not demos or tests), disable them with ODE_WITH_DEMOS=OFF and
ODE_WITH_TESTS=OFF.

Agent-Logs-Url: https://github.com/mahi97/grSim/sessions/c1d5edc7-457e-40ea-a2f3-8cf678736c23

Co-authored-by: mahi97 <7570279+mahi97@users.noreply.github.com>
@mahi97 mahi97 merged commit e092ba2 into master Apr 9, 2026
4 of 5 checks passed
@mahi97 mahi97 deleted the copilot/fix-cicd-failure-macos branch April 9, 2026 20:30
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.

3 participants