Skip to content

Add Windows and Linux templates for static compilation

Dawid Wrobel requested to merge wrobelda/ci-utilities:master into master

We don't test for static builds currently. While static builds are generally supported, especially given the improvement in recent 12-18 months, they often break between releases, presumably because most devs compile their sources with -DBUILD_SHARED_LIBS=ON.

This adds two templates, mostly copies of the existing Linux and Windows ones, with an exception of the added -DBUILD_SHARED_LIBS=OFF switch and removed artifacts: sections.

Enabling this template in projects will inevitably add strain to CI infrastructure, although hopefully the community can find value in having these builds enabled, at least for the core KF5 frameworks.

Similar templates can be added for all other supported platforms, including KF6, but I imagine this would call for some sort of generalization, presumably taking advantage of the include/default features of GitLab, or extends (see e.g. https://invent.kde.org/frameworks/kirigami/-/blob/master/.gitlab-ci.yml#L12)

Edited by Dawid Wrobel

Merge request reports