Skip to content

chore: adopt uv, clang-format, misch, a C2000 build and pkg-config - #9

Merged
aajll merged 1 commit into
masterfrom
8-chore-tooling
Oct 14, 2026
Merged

aajll merged 1 commit into
masterfrom
8-chore-tooling

Conversation

@aajll

@aajll aajll commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Refs #8

Summary

  • Every CI job installs Meson, Ninja and gcovr with astral-sh/setup-uv and uv tool install; setup-python, apt Ninja and pip are gone.
  • scripts/format.sh pins clang-format 23.1.1 through uvx, and a clang-format job runs it. The sources already match, so no file is reformatted.
  • A MISRA (misch) job installs a current cppcheck from Homebrew, runs misch run (zero findings, so no baseline is needed) and prints misch deviations.
  • A TI C2000 job builds the library with CGT 22.6.2 and 25.11.1 under COFF and EABI with warnings as errors, copied from rampg and fxp.
  • meson.build generates ppack.pc (subdirs: 'ppack') and calls meson.override_dependency('ppack', ppack_dep).
  • SPDX headers on meson.build, meson_options.txt, tests/meson.build, the compatibility subproject and all 25 test sources.

Evidence

  • Sanitiser suite (ASan, UBSan, float-cast-overflow): 2 of 2 pass.
  • Coverage: 100% lines (229/229), 100% branches (108/108).
  • env -u MISRA_RULE_TEXTS misch run: no findings; misch deviations: all justified and valid (cppcheck 2.21.1 locally).
  • Local C2000 builds with /opt/ti CGT 22.6.2 and 25.11.1, COFF and EABI, -Dwerror=true: all four link libppack.a.
  • Installed to a scratch prefix: ppack.pc reports Cflags: -I${includedir}/ppack and Libs: -lppack, and a consumer including ppack.h and ppack_version.h compiles and links with pkg-config --cflags --libs ppack. The library uses only the isnan macro from <math.h>, so no -lm is needed.
  • scripts/format.sh: 28 files match.

Deferred

The docs layout (README landing page, docs/integration.md, docs/api.md, docs/design.md, CONTRIBUTING.md and AGENTS.md) follows in a separate PR.

CI installs its Python tools with uv and gains a pinned clang-format check, a misch job that fails on any MISRA C:2023 finding and prints the deviation record, and a TI C2000 build under two CGT releases and both ABIs. The build generates ppack.pc and registers an override dependency, and the Meson files and tests carry SPDX headers.

Refs #8
@aajll aajll linked an issue Oct 14, 2026 that may be closed by this pull request
6 tasks
@aajll
aajll merged commit a34bd4f into master Oct 14, 2026
9 checks passed
@aajll
aajll deleted the 8-chore-tooling branch October 14, 2026 21:54
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.

Adopt uv, clang-format, a misch CI job, a C2000 build and pkg-config generation

1 participant