Skip to content

Assemble the bundle's installers from the layers' stagings, or build every layer from its sources - #3

Merged
alexadereyko merged 92 commits into
mainfrom
jira/TBBAS-3611-bundle-from-stagings-and-sources
Nov 27, 2026
Merged

alexadereyko merged 92 commits into
mainfrom
jira/TBBAS-3611-bundle-from-stagings-and-sources

Conversation

@alexadereyko

@alexadereyko alexadereyko commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Brief

The bundle takes one revision per layer from bundle.json and packs installers out of them: every layer built from
its sources by FetchContent, or every layer's staging taken prebuilt. CI lays the stagings into its run, from the
registry or staged there when the registry lacks them, packs the installers and publishes them.

Description

  • bundle.json: the bundle's version (its packages' and installers') and one commit, branch or tag per layer;
    BUNDLE_REVISION_<REPOSITORY> replaces one.
  • BUNDLE_STAGINGS: the layers in the bundle, a list separated by semicolons; a module left out is left out of the
    bundle, opendaq is required.
  • BUNDLE_FROM picks where the layers come from, for all of them at once:
    • SOURCES (the default, cmake/Sources.cmake): every layer by FetchContent, built in one tree; Boost is built
      once, by the core, with what every layer needs.
    • STAGINGS (cmake/Stagings.cmake): every staging prebuilt, unpacked into the directory
      BUNDLE_PREFIX_<STAGING> gives; nothing is fetched or compiled, the files are only laid into install
      components. A missing directory is an error.
  • cmake/Layers.cmake names the layers and their revisions; cmake/Packing.cmake and CPackOptions.cmake pack what
    a package preset picks (installer, core, modules): DEB, NSIS or productbuild with each module an optional
    component, or an archive.
  • Every package carries share/opendaq-bundle/build-meta.json, as the core carries share/opendaq/build-meta.json:
    the settings and every layer's commit, resolved from the sources when built here.
  • The utils at v1.1.4, as the modules.
  • CI, one workflow, bundle.yml, every step a job of its own on the run page:
    • runs on schedule (Mondays 06:00, after the layers' stagings, every layer at main), by hand or called; an input
      replaces a layer's revision;
    • Resolve revisions resolves the commits and pulls the stagings the registry has; Stage <layer> stages a
      missing one by the layer's own stage.yml, never published, on the bundle's platforms only, the core first;
    • Configure and Build pack the installers from those stagings (BUNDLE_FROM=STAGINGS);
    • Push publishes them to ghcr.io/openDAQ/bundle/native, only in this repository and unless
      skip-staging-push; cleanup.yml keeps them 30 days.
  • tests/installed removed: the integration tests, in a repository of their own, take the bundle.

Usage example

From sources:

cmake --preset bundle-native
cmake --build --preset bundle-native
cpack --preset installer -G <DEB | NSIS | productbuild>

In CI, layers at other revisions (any input left out takes bundle.json's):

gh workflow run bundle.yml -R openDAQ/openDAQ-bundle \
   -f opendaq=<sha | branch | tag> \
   -f opcua-modules=<sha | branch | tag> \
   -f mqtt-module=<sha | branch | tag> \
   -f lt-streaming-modules=<sha | branch | tag> \
   -f asam-cmp-modules=<sha | branch | tag> \
   -f skip-staging-push=true

… receipts io.opendaq.bundle and ship an uninstall script
…PATH from the command line for a silent install
…om its stagings' artifacts, installed and smoke-checked
…message box when PATH is longer than 1024 characters
…s a caller built in its run as its artifacts
…s need libpcap.so.1 and OpenSSL 1.1, which Ubuntu lacks
…ble.yml builds from them, bundle.yml calls both
@alexadereyko
alexadereyko merged commit 43b5a55 into main Nov 27, 2026
39 checks passed
@alexadereyko
alexadereyko deleted the jira/TBBAS-3611-bundle-from-stagings-and-sources branch November 27, 2026 08:12
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.

3 participants