ci: re-add clang-17 to the cpu matrix (scoped OpenMP runtime) - #18
Merged
Conversation
clang-17 was dropped (6bc79a9) because the shared apt-get install line carried libomp-17-dev for every matrix job; when that package failed to resolve, the install step died in all jobs (including gcc), reddening the whole matrix. The failure was packaging, not a C++20 source divergence. Re-add clang-17 and move its LLVM OpenMP runtime into a clang-only step (if: startsWith(matrix.compiler.cc, 'clang')) so a clang-specific package can never block the gcc jobs again. Closes #15.
nikbott
force-pushed
the
fix/clang-cpp20-compat
branch
from
July 7, 2026 09:23
654de94 to
9421bbb
Compare
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.
Restores two-compiler (gcc + clang) CPU coverage in CI. Closes #15.
Root cause
clang-17 was dropped in
6bc79a9under the theory of a C++20 source incompatibility, but the drop commit itself records the real cause: the sharedapt-get installline carriedlibomp-17-devfor every matrix job, so when that package failed to resolve the install step died in all jobs — including gcc — reddening the whole matrix. Local clang syntax-checks of theomp/sources compile clean, corroborating that the source was never the problem.Fix
{ cc: clang-17, cxx: clang++-17 }to thecpumatrix.if: startsWith(matrix.compiler.cc, 'clang')) installingclang-17 libomp-17-dev, so a clang-specific package can never block the gcc jobs again.libomp-17-dev(1:17.0.6) is available on noble.Verification
This PR's own CI is the verification: clang-17 Debug+Release must configure (FindOpenMP), build, and pass ctest, with gcc-13 jobs still green.