Repository navigation
Fix GitHub CI because ubuntu-latest is now using CMake 4.x.x - #173
Merged
Merged
Conversation
if ZEPHYR_TOOLCHAIN_VARIANT is undefined, newer versions of CMake will blow up. previous successful runs used Cmake 3.x.x... more in the pull request.
Eirenliel
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI Builds are failing because newer versions of CMake don't like when env
ZEPHYR_TOOLCHAIN_VARIANTis undefined. It needs to be set in.github/workflows/workflow.yml.How did this happen?
During the setup process,
ubuntu-latestis pulling in version 26.04 which now ships with CMake 4.4.5. The rollout has been happening since October 19, 2026 and should be completed by November 19, 2026..You can check Ubuntu 22.04's CMake version here, and 24.04's here. Any 26.04 build will fail, because it has CMake 4.4.5 as seen here.
Checking any failed run will show the image as follows:
You can also see in the failed builds that it's loading
-- CMake version: 4.4.5.Check a successful run, and it'll show a previous version:
While here, if you check the successful runs, it's running
-- CMake version: 3.31.6.Don't ask how long this took me to find, I'd rather not say...lol. Basically, I saw the error with
ZEPHYR_TOOLCHAIN_VARIANT:Then, I went down a big rabbit hole.
TL;DR
Ubuntu 26.04 uses a later CMake version and is now the default when using
ubuntu-latest. Rollout recently happend over the last couple months. Use 24.04 or define ZEPHYR_TOOLCHAIN_VARIANT in the workflowenvsection....That's a lotta notes for a one line code change.
¯\(ツ)/¯