Skip to content

CI: Add static OSG + MyGUI build

Gleb Mazovetskiy requested to merge glebm/openmw:add-static-build into master

TLDR: Adds a static build to CI, allowed to fail for now.

More details:

  1. Adds a separate job that builds just MyGUI and OSG for static linking. This allows us to cache it separately and skip this (slow) build in most cases.

  2. To achieve (1) adds a prepare stage and a needs property to each job. https://docs.gitlab.com/ee/ci/yaml/#needs

  3. Cleans up GitLab CI config Debian dependency management

    • gcc no longer installed for the clang build and vice-versa
    • apt-get dependency installation moved to a separate script, where we can group dependencies.

Some stats:

  • Static dependency build took 58m (mostly OSG). Rebuilds will only happen on version change / cache expiration.
  • Static artifacts archive from the prepare job is only ~17 MiB when built in Release mode (~300 MiB if built in RelWithDebInfo mode)
Edited by Gleb Mazovetskiy

Merge request reports