Skip to content

Add explicit CI CMake presets#35

Merged
rustaceanrob merged 2 commits into
2140-dev:masterfrom
willcl-ark:2140-cmakepresets
May 29, 2026
Merged

Add explicit CI CMake presets#35
rustaceanrob merged 2 commits into
2140-dev:masterfrom
willcl-ark:2140-cmakepresets

Conversation

@willcl-ark
Copy link
Copy Markdown

@willcl-ark willcl-ark commented May 29, 2026

Switch CI jobs to CMakePresets.

This is where flag and other configuration should naturally live, IMO.

This also makes it much easier to run the CI config with different toolchains, and other things.

edit: note this PR was 100% LLM-writted by Codex, I roughly reviewed the output, but mistakes may be present

@willcl-ark
Copy link
Copy Markdown
Author

Currently all preset are explicit, but could be refactored to use a "base" preset and inherit from that.

@willcl-ark willcl-ark marked this pull request as draft May 29, 2026 11:56
@willcl-ark
Copy link
Copy Markdown
Author

drafting as this may conflict with another part of the master plan…

@rustaceanrob
Copy link
Copy Markdown
Member

ZMQ is out, ready for rebase

Make each CI configure environment self-contained so the jobs can later
switch from ad hoc CMake flags without relying on an inherited dev-mode
preset.

Include the shared options assembled by the CI test script in the presets.
This keeps the future cutover mechanical while leaving the CI scripts
unchanged for now.
Use the explicit ci-* presets from the setup environment files and remove
the duplicated per-job CMake flags now owned by those presets.

Keep only caller-specific path options in the shared test script, so CI
still supplies its depends toolchain and install prefix without baking
those paths into reusable presets.
@willcl-ark willcl-ark force-pushed the 2140-cmakepresets branch from 8c191ef to 0fdec54 Compare May 29, 2026 13:41
@rustaceanrob
Copy link
Copy Markdown
Member

rustaceanrob commented May 29, 2026

I'm impartial on having a base preset. This looks good to me, can we undraft and merge?

@willcl-ark willcl-ark marked this pull request as ready for review May 29, 2026 18:25
@willcl-ark
Copy link
Copy Markdown
Author

undrafted

@rustaceanrob rustaceanrob merged commit cc388e2 into 2140-dev:master May 29, 2026
19 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