Repository navigation
fix CI builds: install bison, enable vulkan WSI, bump submodules - #11
Merged
Merged
Conversation
igagis-bot
force-pushed
the
ci/fix-builds
branch
from
November 23, 2026 02:00
bf16984 to
c0c5509
Compare
This was referenced Nov 23, 2026
igagis-bot
force-pushed
the
ci/fix-builds
branch
from
November 23, 2026 02:07
c0c5509 to
621dda0
Compare
- ci: install bison on all platforms:
- linux: add bison to the apt build tools (pre-installed, made explicit)
- macos/ios: brew install bison (the pre-installed bison is too old and
does not understand the %language directive used by tml.y)
- windows: install bison from the pre-installed MSYS2 and add its bin
directory to the PATH (bison is not pre-installed at all)
- vcpkg: enable the xlib and wayland features of vulkan-loader on linux, so
that the vcpkg-provided loader exports vkCreateXlibSurfaceKHR and
vkCreateWaylandSurfaceKHR (they are needed to link the gtk-4/xorg/wayland
applications against the loader)
- ci: add the libx11-dev, libwayland-dev and libxkbcommon-dev packages to
the linux build deps (needed to build vulkan-loader with the WSI features)
- repos/utki: bump to fix utki::assert() ambiguity for lambdas in
Objective-C++ (broke the ios build)
- repos/ruis-render-vulkan: bump to fix C4244 narrowing conversion
warnings on 32-bit (Win32) targets (broke the windows win32 build)
igagis-bot
force-pushed
the
ci/fix-builds
branch
from
November 23, 2026 02:44
621dda0 to
adfe685
Compare
…in/bison 2.3) Homebrew installs bison keg-only because macOS already ships /usr/bin/bison (2.3 from 2006, which does not support the %language directive used by tml.y). Installing the bottle therefore did not put a modern bison on the PATH and the tml-bnf generation failed. Force-link the keg so that /opt/homebrew/bin/bison shadows the system one.
…bison from ios ci tml-bnf is now ios-excluded (it is a development / testing aid), so the ios job no longer needs bison. the tml bump also fixes the -Wunused-but-set-variable error that bison 3.x generated code hits under warnings-as-errors on the other platforms.
the previous commit mistakenly constrained the vulkan dependency to 'osx | ios', which removed it from the windows and linux vcpkg plans (vulkan was intentionally unconstrained: 'needed on all platforms'). windows and linux get vulkan again; the linux-only vulkan-loader entry merges its xlib / wayland features into the same loader build (verified: vcpkg resolves vulkan-loader[core,xlib,wayland]).
a hung runner (observed on macos-latest, where a job stayed in_progress for more than 3 hours) otherwise blocks the pull request indefinitely.
the full build on a macos runner takes about 55 minutes (plus configure), which is too close to the 60-minute timeout: even healthy runs got cancelled at the timeout.
The build presets use 'jobs: 0', which makes CMake invoke 'gmake -j'
(unlimited parallel jobs). On the 4-vCPU/15Gi linux runners this spawns
dozens of concurrent cc1plus processes (each ~300-700MB), exhausting
RAM+swap; the OOM killer kills the runner VM mid-build ('The runner has
received a shutdown signal' + 'Killed signal terminated program cc1plus').
Pass an explicit --parallel 4 (matching the runner's vCPU count) to the
build and test steps. This takes precedence over the preset's jobs
property and keeps peak build memory well within the runner's RAM.
igagis
reviewed
Nov 23, 2026
igagis
reviewed
Nov 23, 2026
igagis
reviewed
Nov 23, 2026
igagis
reviewed
Nov 23, 2026
…on macos/windows - linux: --parallel $(nproc) instead of a hardcoded number (a bare --parallel is equivalent to the preset's jobs: 0, which makes CMake pass a bare -j to gmake = unlimited jobs = OOM on the runner; verified with CMake 4.2.3) - linux: use the system libvulkan-dev (its loader exports the WSI surface entry points) instead of the vcpkg vulkan-loader[xlib,wayland] hack; the vcpkg vulkan dependency is now !linux so find_package(Vulkan) falls back to the system loader. macos / ios keep the vcpkg vulkan port (runtime ICD is MoltenVK on those runners). - macos / windows: no bison installation anymore - the tml-bnf build is gated to linux only (see tml PR cppfw/tml#49); once that PR is merged, the tml submodule pointer in this PR will be updated.
…n to merged cppfw#4 (e6b74bc)
… nullptr comparison utki::assert() checker overloads replaced with a constrained template (cppfw/utki#34); the std::function-based overloads are removed, so call sites asserting a std::function object for non-emptiness compare with nullptr explicitly (cppfw/clargs#21, cppfw/tst#27, cppfw/cssom#9, cppfw/ruis#195).
Follow-up to cppfw/utki#34 (review: C++20 concept constraint; CI harness clargs/tst bumps).
…limited -> swap thrash on 16Gi runners)
…s:0 unbounded issue)
…rged: utki#34 ec1c167, clargs#21, tst#27, cssom#9, ruis#195)
igagis
approved these changes
Nov 23, 2026
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.
Fixes all the currently failing CI jobs (linux OOM, missing Vulkan WSI symbols on linux,
utki::assertlambda ambiguity in Objective-C++, C4244 on Win32, tml bnf on non-linux).Changes
CI workflow (
.github/workflows/ci.yml):cmake --build ... --parallel $(nproc)for build and test. The CMake base preset setsjobs: 0, which CMake translates tomake -j(unlimited parallelism); on the 4 vCPU / 15 GiB runners this spawns 20+ concurrentcc1plusprocesses and the runner is OOM-killed mid-build. Bounding to$(nproc)fixes it.libvulkan-dev(pluslibx11-dev,libwayland-dev,libxkbcommon-dev) to the apt build deps — the system Vulkan loader exports the WSI entry points (vkCreateXlibSurfaceKHR,vkCreateWaylandSurfaceKHR) that the vcpkgvulkanport does not.bisonexplicitly to the apt build tools (required bytml's bnf grammar build).timeout-minutesto all jobs so a wedged job fails instead of hanging until the platform limit.vcpkg manifest (
build/cmake/vcpkg.json):vulkanis now"platform": "!linux"— on linux the system loader (libvulkan-dev) is used instead; on other platforms the vcpkg port is unchanged.Submodule bumps — dependency PRs
Already merged (pins point at squash commits on
main):repos/tml→a6925dfyynerrs_in the document action (fixes-Wunused-but-set-variableunder-Werroron newer clang)repos/ruis-render-vulkan→e6b74bcSubmodule pins (PR head
3dc975a) — every cppfw submodule is pinned at its repo'smaintip; none are off-main. The 7 marked*are the pins changed by this PR (all squash commits of the dependency PRs above):maintiprepos/agg80f0f7580f0f75repos/audout58cf35858cf358repos/aumiksc874041c874041repos/clargs6bdcb946bdcb94*#21repos/cssomb3d9932b3d9932*#9repos/fsife134472e134472repos/httpclientffda733ffda733repos/httpmodeleb11b68eb11b68repos/jsondomcd59a63cd59a63repos/mikroxml2200e2c2200e2crepos/myci5aa63785aa6378repos/nitkifd6865bfd6865brepos/oprosf39b979f39b979repos/pautina00856aa00856aarepos/r450788475078847repos/rasterimage4b4f8c94b4f8c9repos/ruis1d2c9491d2c949*#195repos/ruis-render-nullb4e0f50b4e0f50repos/ruis-render-opengl089bb42089bb42repos/ruis-render-openglesdb06733db06733repos/ruis-render-vulkane6b74bce6b74bc*#4repos/ruisapp91205b891205b8repos/setkaa3c8841a3c8841repos/svgdom8f90d388f90d38repos/svgrenc09470fc09470frepos/tcpserver020fa38020fa38repos/tmla6925dfa6925df*#49, #50repos/tst3228cae3228cae*#27repos/urlmodel94c0e1e94c0e1erepos/utkiec1c167ec1c167*#34repos/vege2cdeebe2cdeebtool-configs9fcb2b19fcb2b1(
apps/ruis-sdl-exampleis a user-cloned repo, not a submodule — not pinned by this PR.)Superseded/closed along the way (no pin involved): utki#33, ruis#194, rasterimage#7 (call-site assert workarounds, replaced by utki#34), ruisapp#31 (vcpkg
vulkan-loaderdep — not needed, and unresolvable on the pinned vcpkg registry).Merge order
All dependency PRs are merged and every pin points at a squash commit on the respective
mainbranch. This PR is ready to merge once CI is green.Verification