ci: Build both static and shared

This allows us to validate the objcopy trick in CI. It's basically free
to build both static and shared libraries anyway.

We only enable this for GCC builds right now, as Meson currently lacks
support for prelinking with other compilers.
This commit is contained in:
Kenny Levinsen 2021-06-15 00:00:25 +02:00 committed by Simon Ser
parent cb6db86a28
commit 8d2a94b0df
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ sources:
tasks: tasks:
- setup: | - setup: |
cd wlroots cd wlroots
meson build -Dauto_features=enabled -Dlibseat=disabled -Dxcb-errors=disabled meson build --default-library=both -Dauto_features=enabled -Dlibseat=disabled -Dxcb-errors=disabled
- build: | - build: |
cd wlroots cd wlroots
ninja -C build ninja -C build

View file

@ -20,7 +20,7 @@ sources:
tasks: tasks:
- setup: | - setup: |
cd wlroots cd wlroots
CC=gcc meson build-gcc -Dauto_features=enabled --prefix /usr CC=gcc meson build-gcc --default-library=both -Dauto_features=enabled --prefix /usr
CC=clang meson build-clang -Dauto_features=enabled CC=clang meson build-clang -Dauto_features=enabled
- gcc: | - gcc: |
cd wlroots/build-gcc cd wlroots/build-gcc