Skip to content

Fix GitHub CI because ubuntu-latest is now using CMake 4.x.x - #173

Merged
Eirenliel merged 3 commits into
SlimeVR:mainfrom
VYRO-VR:Github-CI-Fix
Nov 20, 2026
Merged

Eirenliel merged 3 commits into
SlimeVR:mainfrom
VYRO-VR:Github-CI-Fix

Conversation

@EFF17

@EFF17 EFF17 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

CI Builds are failing because newer versions of CMake don't like when env ZEPHYR_TOOLCHAIN_VARIANT is undefined. It needs to be set in .github/workflows/workflow.yml.

How did this happen?

During the setup process, ubuntu-latest is 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:

Runner Image
  Image: ubuntu-26.04
  Version: 20261111.196.1
  Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261111.196/images/ubuntu/Ubuntu2604-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261111.196

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:

Runner Image
  Image: ubuntu-24.04
  Version: 20261025.353.1
  Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261025.353/images/ubuntu/Ubuntu2404-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261025.353

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:

CMake Error at /home/runner/work/SlimeVR-Tracker-nRF/SlimeVR-Tracker-nRF/zephyr-workspace/zephyr/cmake/modules/FindZephyr-sdk.cmake:57 (if):
  if given arguments:

    "(" "zephyr" "STREQUAL" ")" "OR" "(" "NOT" "DEFINED" "ZEPHYR_TOOLCHAIN_VARIANT" ")" "OR" "(" "DEFINED" "ZEPHYR_SDK_INSTALL_DIR" ")" "OR" "(" "Zephyr-sdk_FIND_REQUIRED" ")"

  Unknown arguments specified

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 workflow env section.

...That's a lotta notes for a one line code change.
¯\(ツ)/¯

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
Eirenliel merged commit cb9add4 into SlimeVR:main Nov 20, 2026
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.

2 participants