Skip to content

About

test repo to check a more modularized deployment path

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OpenMS-Distribution

One installer of OpenMS together with its add-ons: the OpenMS core plus the tools that live in their own repositories and are built against an installed OpenMS of the same version, such as OpenMS-TOPP-GUI (TOPPView, TOPPAS, ...) and OpenMS-MetaProSIP.

Status: pilot. Linux x64, one DEB (or a tarball). Windows (NSIS) and macOS (productbuild, signing, notarization) follow once the Linux package is established.

How it works

manifest.json pins each component to a branch, tag or commit. A release pins tags. The superbuild (CMakeLists.txt, CMake ExternalProject) then:

  1. builds the core with its own preset and vcpkg and installs it into a staging prefix (<build>/stage);
  2. builds each add-on against that staging prefix, exactly as against any installed OpenMS (find_package(OpenMS <version> EXACT)), runs its tests, and installs it into the same prefix. Every add-on registers its tools with its own share/OpenMS/TOOLS/<name>.tsv next to the core's OpenMS.tsv;
  3. tests the staged installation as a whole (ctest): every tool name is registered once, every registered tool is installed, and every tool starts from the installation with a clean environment (cmake/check_staged_installation.cmake);
  4. with DIST_PACKAGE_TYPE=deb (or tgz), reconfigures every component with a package type (as the OpenMS release workflow does: build and test with PACKAGE_TYPE=none, then reconfigure and package without relinking) and builds one package from the install components of all of them (CPACK_INSTALL_CMAKE_PROJECTS; the components per project are in the manifest).

The DEB openms-distribution provides, replaces and conflicts with the packages of the single components (openms, openms-gui, openms-metaprosip).

Building

The build dependencies are those of the components (their tools/ci/deps-*.sh).

cmake -S . -B build -G Ninja -DDIST_PACKAGE_TYPE=deb
cmake --build build
ctest --test-dir build --output-on-failure
cmake --build build --target package

Options:

Option Default
DIST_PACKAGE_TYPE none deb or tgz for the combined package
DIST_SOURCE_DIR_<component> a local checkout to build instead of the ref of the manifest, e.g. DIST_SOURCE_DIR_OpenMS_MetaProSIP (the name with non-identifier characters replaced by _)
DIST_ENABLE_TESTING ON run the tests of each add-on before installing it, and the staged-installation test
DIST_TEST_CORE OFF also build and run the class and TOPP tests of the core (long)
DIST_OPENMS_PRESET per host the CMake preset of OpenMS the core is configured with
DIST_OPENMS_CMAKE_ARGS further configure arguments of the core
DIST_ADDON_PREFIX_PATH further CMAKE_PREFIX_PATH entries of the add-ons (e.g. Qt)
DIST_STAGE_DIR <build>/stage the staging prefix

Adding an add-on

An add-on is a CMake project that

  • finds the core with find_package(OpenMS <version> EXACT CONFIG COMPONENTS CLI),
  • installs into the core's prefix layout (bin/, share/OpenMS, ...) and registers its TOPP tools in its own share/OpenMS/TOOLS/<name>.tsv,
  • runs its tests with ctest against the installed core (OPENMS_TOPP_BIN_DIR for FuzzyDiff),
  • puts what belongs into a package into named install components.

Add it to manifest.json (kind: addon, its packaged_components), and its dependency script to .github/workflows/build.yml.

License

BSD 3-Clause, as OpenMS (see LICENSE).

About

test repo to check a more modularized deployment path

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages