Skip to content

fix CI builds: install bison, enable vulkan WSI, bump submodules - #11

Merged
igagis merged 20 commits into
cppfw:mainfrom
igagis-bot:ci/fix-builds
Nov 23, 2026
Merged

igagis merged 20 commits into
cppfw:mainfrom
igagis-bot:ci/fix-builds

Conversation

@igagis-bot

@igagis-bot igagis-bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes all the currently failing CI jobs (linux OOM, missing Vulkan WSI symbols on linux, utki::assert lambda ambiguity in Objective-C++, C4244 on Win32, tml bnf on non-linux).

Changes

CI workflow (.github/workflows/ci.yml):

  • linux: cmake --build ... --parallel $(nproc) for build and test. The CMake base preset sets jobs: 0, which CMake translates to make -j (unlimited parallelism); on the 4 vCPU / 15 GiB runners this spawns 20+ concurrent cc1plus processes and the runner is OOM-killed mid-build. Bounding to $(nproc) fixes it.
  • linux: add libvulkan-dev (plus libx11-dev, libwayland-dev, libxkbcommon-dev) to the apt build deps — the system Vulkan loader exports the WSI entry points (vkCreateXlibSurfaceKHR, vkCreateWaylandSurfaceKHR) that the vcpkg vulkan port does not.
  • linux: add bison explicitly to the apt build tools (required by tml's bnf grammar build).
  • add timeout-minutes to all jobs so a wedged job fails instead of hanging until the platform limit.

vcpkg manifest (build/cmake/vcpkg.json):

  • vulkan is 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):

pin PR what it does
repos/tml → a6925df cppfw/tml#49 gate the bnf (bison) build to linux only; read yynerrs_ in the document action (fixes -Wunused-but-set-variable under -Werror on newer clang)
cppfw/tml#50 vcpkg: build with the windows toolchain matrix instead of the default triplet
repos/ruis-render-vulkan → e6b74bc cppfw/ruis-render-vulkan#4 vcpkg: build with the windows toolchain matrix instead of the default triplet

Submodule pins (PR head 3dc975a) — every cppfw submodule is pinned at its repo's main tip; none are off-main. The 7 marked * are the pins changed by this PR (all squash commits of the dependency PRs above):

submodule pin main tip
repos/agg 80f0f75 80f0f75
repos/audout 58cf358 58cf358
repos/aumiks c874041 c874041
repos/clargs 6bdcb94 6bdcb94 * #21
repos/cssom b3d9932 b3d9932 * #9
repos/fsif e134472 e134472
repos/httpclient ffda733 ffda733
repos/httpmodel eb11b68 eb11b68
repos/jsondom cd59a63 cd59a63
repos/mikroxml 2200e2c 2200e2c
repos/myci 5aa6378 5aa6378
repos/nitki fd6865b fd6865b
repos/opros f39b979 f39b979
repos/pautina 00856aa 00856aa
repos/r4 5078847 5078847
repos/rasterimage 4b4f8c9 4b4f8c9
repos/ruis 1d2c949 1d2c949 * #195
repos/ruis-render-null b4e0f50 b4e0f50
repos/ruis-render-opengl 089bb42 089bb42
repos/ruis-render-opengles db06733 db06733
repos/ruis-render-vulkan e6b74bc e6b74bc * #4
repos/ruisapp 91205b8 91205b8
repos/setka a3c8841 a3c8841
repos/svgdom 8f90d38 8f90d38
repos/svgren c09470f c09470f
repos/tcpserver 020fa38 020fa38
repos/tml a6925df a6925df * #49, #50
repos/tst 3228cae 3228cae * #27
repos/urlmodel 94c0e1e 94c0e1e
repos/utki ec1c167 ec1c167 * #34
repos/veg e2cdeeb e2cdeeb
tool-configs 9fcb2b1 9fcb2b1

(apps/ruis-sdl-example is 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-loader dep — 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 main branch. This PR is ready to merge once CI is green.

Verification

  • local build (linux dbg, system Vulkan): 100% success, all targets link
  • local test run: all suites pass
  • clang-tidy: no new findings in the modified files

- 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)
…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.
Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread build/cmake/vcpkg.json Resolved
…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.
… 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).
…rged: utki#34 ec1c167, clargs#21, tst#27, cssom#9, ruis#195)
@igagis
igagis merged commit b6214aa into cppfw:main Nov 23, 2026
4 of 12 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