CI: Add static OSG + MyGUI build
TLDR: Adds a static build to CI, allowed to fail for now.
More details:
-
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.
-
To achieve (1) adds a
prepare
stage and aneeds
property to each job. https://docs.gitlab.com/ee/ci/yaml/#needs -
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 inRelWithDebInfo
mode)
Edited by Gleb Mazovetskiy