ci: fix CodeQL C/C++ build by switching to ubuntu-24.04 - #209
Merged
Conversation
Co-authored-by: clauspruefer <17313789+clauspruefer@users.noreply.github.com>
Copilot
AI
changed the title
ci: fix Analyze (c-cpp) by switching to ubuntu-24.04
ci: fix CodeQL C/C++ build by switching to ubuntu-24.04
Aug 7, 2026
Copilot created this pull request from a session on behalf of
clauspruefer
August 7, 2026 06:58
View session
clauspruefer
marked this pull request as ready for review
August 7, 2026 06:58
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates the CodeQL workflow runner to Ubuntu 24.04 to resolve a C/C++ CodeQL build failure caused by the Ubuntu 22.04 + gcc-14 toolchain PPA combination (notably around nlohmann-json 3.10.x with newer libstdc++).
Changes:
- Switch CodeQL “Analyze (c-cpp)” job runner from
ubuntu-22.04toubuntu-24.04. - Remove the toolchain PPA bootstrap steps (
software-properties-common,add-apt-repository,ppa:ubuntu-toolchain-r/test) since they’re no longer needed on 24.04.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
The CodeQL "Analyze (c-cpp)" job was failing due to an incompatibility between nlohmann-json 3.10.x (shipped by ubuntu-22.04) and gcc-14 from the toolchain PPA — specifically, the newer libstdc++ made implicit conversion from
nlohmann::basic_json<>::value_typetostd::vector<std::string>ambiguous at assignment sites like:Changes
.github/workflows/codeql.ymlubuntu-22.04→ubuntu-24.04, which ships gcc-14/g++-14 natively and nlohmann-json 3.11.x (resolves the ambiguous conversion)software-properties-common,add-apt-repository, and theubuntu-toolchain-r/testPPA steps — no longer needed