Repository navigation
ci: flashmini pipeline, linux support - #2
Merged
Merged
Conversation
added 20 commits
October 3, 2026 11:59
MSVC's STL provides size_t, std::invoke, std::forward, std::memcpy, ... transitively; libstdc++ and libc++ do not. Also qualify std::nullptr_t, the global nullptr_t is a GCC extension that Clang rejects.
std::format(fmt, __VA_ARGS__) left a trailing comma when no arguments were passed. Use __VA_OPT__, which requires /Zc:preprocessor on MSVC.
The condition was evaluated in the if-initializer and again as the if condition, so side effects (e.g. timerfd_settime, SetEvent) ran twice.
A name used in a class must keep its meaning in the completed class ([basic.scope.class]); gcc diagnoses this as an error (-Wchanges-meaning).
enable_testing() ran after the subprojects were added, so ctest only saw integration_tests. The targets already enable buildcache through cth_target_enable_build_cache(OPTIONAL); the global launcher made it mandatory.
Build & Test runs one pipeline per compiler: linux (gcc, clang) inside a CachyOS container built and cached in GHCR, windows (msvc, clang) on the hosted runner. vcpkg binaries are cached in GitHub Packages (NuGet), BuildCache objects in the actions cache with a GHCR fallback from master. CI presets live in ci/CMakeUserPresets.json. Linux builds cth_tests and cth_os_tests only until cth_coro (asio), cth_net (libhv) and cth_win/integration_tests are ported.
Superseded by cth::io::file::chop. Nothing included read.inl, and its wchar_t path relied on std::codecvt_utf8, which C++26 removes.
asio's posix descriptors need a wait type (eventfd/timerfd signal by becoming readable), windows object handles take none. async_wait_signaled dispatches on what the handle type supports instead of the platform.
Adds cth_target_alias_any.
vcpkg's libhv exports hv for shared and hv_static for static builds; the alias links whichever exists, so cth_net builds with both linkages.
cth_win wraps the Windows API. integration_tests linked cth::win without using it, it only needs cth::cth.
The runner ships LLVM 20, which rejects the constrained lambda template parameters in cth::alg::assign (fixed in clang 22).
CI runners overshot the previous 1ms bound by ~0.1ms. 3ms still catches falling back to the ~15.6ms default timer resolution on windows.
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.
Replaces the never-passing CI with the flashmini pipeline and makes cth build on Linux (GCC + Clang/libstdc++).
CI
Build & Testruns one pipeline per compiler: Linux (gcc, clang) in a CachyOS container built fromci/docker/linux/Dockerfileand cached in GHCR, Windows (msvc, clang) on the hosted runner.ci/CMakeUserPresets.json(configure, build and test preset per job).test.yml/release.ymland their actions (they referenced presets and targets that no longer exist).Linux / GCC / Clang
std::nullptr_t__VA_OPT__for calls without format arguments (/Zc:preprocessoron MSVC, as an interface option ofcth::cth)co::scheduler(gcc-Wchanges-meaning), pass the wait type for posix descriptors in asio'sasync_waitstdc++expforstd::stacktracewith libstdc++cth_target_alias_any(hv/hv_staticdepending on linkage)cth_winis only added on Windows;integration_testsno longer linkscth::win(it never used it)gcc_releasepreset, clang preset C compiler fixedFixes for all platforms
enable_testing()ran after the subprojects were added, so ctest only registeredintegration_tests(10 of ~290 tests)cth_target_enable_build_cache(OPTIONAL))loadTxt(cth::io::file::chopcovers it)Verified locally in the CI container: GCC 16.2 and Clang 23.1 build everything with 0 warnings, 263/263 tests pass. Windows is verified by this PR's CI.