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

Fix failing Clang builds on GitHub Actions #79

Merged

Conversation

striezel
Copy link
Contributor

A while ago the ubuntu-latest image moved from Ubuntu 22.04 to Ubuntu 24.04. See actions/runner-images#10636. However, Ubuntu 24.04 does not have packages for Clang 11 and 12 anymore, thus the Clang jobs failed when they tried to install the corresponding compilers. Therefore, the workflow is changed to use ubuntu-22.04 instead of ubuntu-latest for Clang 11 and Clang 12.

Furthermore, jobs for Clang 16 - the first major version of Clang to support std::expected - and Clang 19 (latest Clang version available on Ubuntu 24.04) are added.

The reason for those additions is basically martinmoene/nonstd-lite-project#75. Since Clang 11 and 12 do not support std::excepted, there should also be some tests with Clang versions that do. Clang 16 is the obvious choice here, because it is the first Clang version that comes with built-in support for std::expected. Clang 19 is just the latest Clang currently available via Ubuntu package respositories. I think that is a good choice to catch potential problems with the latest Clang.

A while ago the 'ubuntu-latest' image moved from Ubuntu 22.04 to
Ubuntu 24.04. See <actions/runner-images#10636>.
However, Ubuntu 24.04 does not have packages for Clang 11 and 12
anymore, thus the Clang jobs failed when they tried to install
the corresponding compilers. Therefore, the workflow is changed
to use 'ubuntu-22.04' instead of 'ubuntu-latest'.

Furthermore, jobs for Clang 16 (the first major version of Clang
to support `std::expected`) and Clang 19 (latest Clang version
available on Ubuntu 24.04) are added.
@striezel
Copy link
Contributor Author

striezel commented Mar 12, 2025

The MSVC build on WIndows 2022 failed. I'll make another pull request to fix that.

Edit: There it is: #80
After merging both pull requests (this one here and #80) the CI should not fail anymore.

@martinmoene martinmoene merged commit 6daa332 into martinmoene:master Mar 14, 2025
8 of 9 checks passed
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