CK Core Apps
CK Core Apps

CI, releases and validation

ck-core-apps validates both its native Motif/CDE application cohort and its documentation site across two independent environments: GitHub Actions (ubuntu-24.04 / ubuntu-24.04-arm) and the self-hosted rpi4 (ck-git-hosting primary ARM64 sandbox).

Native cohort CI (scripts/build-native.sh)

Both .github/workflows/build.yml and .ckgit/ci.yml check out the latest master branch of CK Core Motif and CK Core CDE alongside ck-core-apps:

  1. Compiles CK Core Motif ABI 9 from a clean git archive snapshot with C23 (gcc-14 / g++-14).
  2. Generates an isolated en_US.UTF-8 locale (LOCPATH), builds CK Core CDE against the staged Motif prefix (--disable-docs to skip redundant SGML guide generation already covered by ck-core-cde CI), runs make check (full ASan + UBSan on 48-bit VA ubuntu-24.04-arm, and runtime-probed UBSan + functional checks inside rpi4's 39-bit VA rpt-rpi-v8 loopback/user-namespace sandbox), and stages CDE under fakeroot.
  3. Builds all 13 native non-CEF ck-core-apps binaries and executes make check (ck-load-icon-label-state-test).
  4. Verifies every native executable and dtwm carry libXm.so.9 in readelf -dW and that motif-abi-check reports CK Core Motif ABI 9 at runtime.
  5. Emits receipt.txt recording start/end UTC timestamps, elapsed seconds, host kernel, compiler toolchain, exact apps, motif, and cde Git SHA-1 revisions, and SHA-256 digests of every built binary.

ck-browser is omitted from the offline cohort job because its external CEF binary archive is fetched on demand via ./download_cef.sh rather than stored in Git.

rpi4 sandbox runtime characteristics

On rpi4, ck-ci-runnerd executes each step inside unprivileged Linux user, mnt, and net namespaces (runs_on: primary):

  • Read-only source checkouts: /mnt/src (ck-core-apps and sister repositories) is mounted read-only; all scratch trees, staged SDK prefixes, and build outputs live under /mnt/tmp.
  • Compact scratch paths: .ckgit/ci.yml derives a short 12-character hex run suffix ($TMPDIR/apps-<run>) so ToolTalk ttdbserverd test paths stay well within its 120-byte ISAM localhost:<path> key limit.
  • Namespace & resource isolation: Steps run with single-UID user-namespace mapping (0 -> ckgit, /proc/self/setgroups = deny), loopback-only networking without a per-namespace TCP/UDP rpcbind listener on 127.0.0.1:111, and bounded RLIMIT_FSIZE / wall-clock limits.

Release-based ckdocs v0.11.0 documentation publishing

Documentation is built from ckdocs.yml and docs/ with ckdocs v0.11.0 in strict mode (ckdocs build --strict, failing on any broken link, heading fragment, unreferenced page, or invalid front matter) via scripts/build-docs.sh:

TargetHow ckdocs v0.11.0 is provisionedPublished URL
GitHub Pages (.github/workflows/pages.yml)Downloads the official ckdocs_0.11.0_amd64.deb release package from cklukas/ck-git-hosting (v0.11.0) and verifies its pinned SHA-256 digest before installing with dpkg.https://cklukas.github.io/ck-core-apps/
rpi4 LAN Pages (.ckgit/ci.yml)Compiles ckdocs (v0.11.0) offline inside the network-isolated primary runner from the pinned ck-git-hosting sister repository (fbe21b49d6c5d5afebffa3d3de745351e07c6b5e).http://rpi4:8421/ck-core-apps/

Both builds generate HTML pages, tokenized client-side search (search-index.json), sitemap.xml, llms.txt, and companion Markdown exports, and archive receipt.txt recording the exact source commit and ckdocs --version.

Tag and release runs

On rpi4, .ckgit/ci.yml triggers on both branches: [main] and tags: [v*]:

  • main branch pushes: Publish updated documentation to ck-git Pages and archive ephemeral build/documentation receipts.
  • v* release tags: Execute the full documentation and build verification jobs and store durable, non-expiring release evidence records on rpi4 without overwriting default-branch Pages.

Validate documentation and the ck-git CI workflow locally before publishing:

ckdocs check --config ckdocs.yml
ckgit ci lint --rev HEAD

After publishing to rpi4, monitor runs and inspect receipts with:

ckgit ci status
ckgit ci watch
ckgit ci artifacts <run-id>