Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade CMake to 3.31 #11926

Closed
3 of 16 tasks
seagetch opened this issue Apr 1, 2025 · 21 comments
Closed
3 of 16 tasks

Downgrade CMake to 3.31 #11926

seagetch opened this issue Apr 1, 2025 · 21 comments

Comments

@seagetch
Copy link

seagetch commented Apr 1, 2025

Tool name

cmake

Tool license

BSD 3-clause

Add or update?

  • Add
  • Update

Desired version

3.31

Approximate size

No response

Brief description of tool

Since cmake 4.0.0 breaks backward compatibility, it should not be altered silently unless user explicitly specifies it in the script.

URL for tool's homepage

No response

Provide a basic test case to validate the tool's functionality.

Platforms where you need the tool

  • Azure DevOps
  • GitHub Actions

Runner images where you need the tool

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Can this tool be installed during the build?

Tool installation time in runtime

No response

Are you willing to submit a PR?

No response

@oursland
Copy link

oursland commented Apr 1, 2025

This also caught my team and broke our CI.

@oursland
Copy link

oursland commented Apr 1, 2025

Now the Windows builds are failing as well due to installing cmake==4.0.0.

@ctz
Copy link

ctz commented Apr 1, 2025

Note the documentation in this repo is also out of date, eg. https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md says:

CMake 3.31.6

@gtjoseph
Copy link

gtjoseph commented Apr 1, 2025

Caught us as well. A major version bump of any package should not be done to the existing "latest" image.

Oh, and I'd add that this should be a "bug report" not a "feature request" since it was done without warning and without even updating the documentation.

@gtjoseph
Copy link

gtjoseph commented Apr 1, 2025

And I just realized that the release this change is in is in "pre-release" status so how did it get actually pushed to ubuntu:latest???

@pereyra-m
Copy link

We had to downgrade CMake manually in all our workflows.
I also think the breaking changes must be handled in a different way.

kasper93 added a commit to kasper93/mpv that referenced this issue Apr 1, 2025
CMake has been updated to 4.0 which breaks compatibility with all
project targeting version < 3.5. See for more user stories:
actions/runner-images#11926

Remove 4.0 from path and use the one from VS installation which is
working for now. Generally we want to use only tools from VS
installation, but unfortunatelly Windows image provided by GHA have
poluted PATH which already causes issues in the past, that's why we
remove yet another directory from PATH.

The affected project in our case is https://github.com/webmproject/sjpeg
which is build as part of libjxl.
kasper93 added a commit to kasper93/mpv that referenced this issue Apr 1, 2025
CMake has been updated to 4.0 which breaks compatibility with all
project targeting version < 3.5. See for more user stories:
actions/runner-images#11926

Remove 4.0 from path and use the one from VS installation which is
working for now. Generally we want to use only tools from VS
installation, but unfortunately Windows image provided by GHA have
polluted PATH which already causes issues in the past, that's why we
remove yet another directory from PATH.

The affected project in our case is https://github.com/webmproject/sjpeg
which is build as part of libjxl.
kasper93 added a commit to kasper93/mpv that referenced this issue Apr 1, 2025
CMake has been updated to 4.0 which breaks compatibility with all
project targeting version < 3.5. See for more user stories:
actions/runner-images#11926

Remove 4.0 from path and use the one from VS installation which is
working for now. Generally we want to use only tools from VS
installation, but unfortunately Windows image provided by GHA have
polluted PATH which already causes issues in the past, that's why we
remove yet another directory from PATH.

The affected project in our case is https://github.com/webmproject/sjpeg
which is build as part of libjxl.
kasper93 added a commit to mpv-player/mpv that referenced this issue Apr 2, 2025
CMake has been updated to 4.0 which breaks compatibility with all
project targeting version < 3.5. See for more user stories:
actions/runner-images#11926

Remove 4.0 from path and use the one from VS installation which is
working for now. Generally we want to use only tools from VS
installation, but unfortunately Windows image provided by GHA have
polluted PATH which already causes issues in the past, that's why we
remove yet another directory from PATH.

The affected project in our case is https://github.com/webmproject/sjpeg
which is build as part of libjxl.
@kishorekumar-anchala
Copy link
Contributor

Hi @seagetch - Thank you for bringing this issue to our attention. We will look into this issue and will update you after investigating.

@KitsuneRal
Copy link

@kishorekumar-anchala It's not just Ubuntu, Windows images suffer from this too (the image is a pre-release yet ended up being pushed for windows-latest; and it has CMake 4).

Please don't experiment with the community this way.

mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 6, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 6, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 6, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 6, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 6, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
nhuet added a commit to nhuet/scikit-decide that referenced this issue Apr 7, 2025
Some github runners embed now a cmake>=4.0 which is not yet compatible
with the cmake files. So we freeze it to the previous version (3.31.6)
thanks to a dedicated github action.

See the issue and the workaround here: actions/runner-images#11926 (comment)
@vidyasagarnimmagaddi vidyasagarnimmagaddi added the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Apr 7, 2025
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 8, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 8, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
fteicht pushed a commit to airbus/scikit-decide that referenced this issue Apr 8, 2025
Some github runners embed now a cmake>=4.0 which is not yet compatible
with the cmake files. So we freeze it to the previous version (3.31.6)
thanks to a dedicated github action.

See the issue and the workaround here: actions/runner-images#11926 (comment)
Malharbdv pushed a commit to Malharbdv/scummvm_gsoc2025 that referenced this issue Apr 8, 2025
For whatever reason, some modern package managers/envs think it's wise to
use 'latest' for about everything.  Even for the most important building
tools, even when said tools release a major new version warning about big
compatibility breakage.

Stay on CMake 3.31 until the ecosystem is fixed for CMake 4.

See actions/runner-images#11926.
@RaviAkshintala
Copy link
Contributor

Hi All, The PR has been merged, kindly sync the main branch, W are closing this issue. Thanks.

@RaviAkshintala RaviAkshintala removed the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Apr 11, 2025
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 12, 2025
…with third-party library CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 12, 2025
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 12, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 12, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 12, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 12, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 12, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 12, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 12, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
mabrarov added a commit to mabrarov/fluent-bit that referenced this issue Apr 12, 2025
…CMake projects not compatible with CMake 4.0 (actions/runner-images#11926).

Signed-off-by: Marat Abrarov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests