Skip to content

Adopt uv, clang-format, a misch CI job and a C2000 build, and build a static library #4

Closed

Description

@aajll

CI installs Meson, Ninja and gcovr with pip through setup-python, has no formatting check, does not run a MISRA C:2023 analysis, and does not cross-compile for a 16-bit-MAU target. The build uses both_libraries, so it also builds and installs a shared library that no consumer links: the dependency and the pkg-config file already use the static archive. The Meson files and the test sources have no SPDX header.

Scope

  • Install Python tools with astral-sh/setup-uv and uv tool install in every job.
  • Add scripts/format.sh, which pins the clang-format release and runs it through uvx, and a clang-format job.
  • Add misra.toml and analysis/ (x86_64 and aarch64 platform files, deviations file, rule-text and baseline READMEs), and a misch CI job with a current cppcheck. Record existing findings in a baseline per platform; resolving them is out of scope.
  • Add a TI C2000 CGT job (22.6.2 and 25.11.1, COFF and EABI, warnings as errors), as in rampg.
  • Build with static_library instead of both_libraries.
  • Add the SPDX header to the Meson files and the test sources, and update CHANGELOG.md.

Acceptance criteria

  • No pip or setup-python in CI.
  • scripts/format.sh passes in CI.
  • misch run --baseline passes in CI for x86_64 and aarch64.
  • The library builds with warnings as errors under both CGT releases and both ABIs.
  • meson install installs only the static archive, headers and seqlock.pc, and a consumer compiles and links with pkg-config --cflags --libs seqlock.
  • The test, TSan and coverage jobs stay green, with coverage at 100% line and branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions