Skip to content

CI builds fail due to runner upgrade to CMake 4.0.0 #658

@rafbiels

Description

@rafbiels

Summary

GitHub Ubuntu runner upgraded CMake to 4.0.0 recently and now oneMath no longer builds in CI:

CMake Error at deps/googletest/CMakeLists.txt:53 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

Example CI failure:
https://github.com/uxlfoundation/oneMath/actions/runs/14200577688/job/39903482981?pr=655
Runner change:
actions/runner-images@83ff3a6#diff-cc12e5c5d005932feaacf280af949d83e2cb6020dff8203d9ead2e00c30e8b7fR70

Version

Head of develop

Environment

oneMath CI

Steps to reproduce

Run CI on any PR

Observed behavior

CMake configure fails in CI

Expected behavior

CMake configure succeeds in CI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions