aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-01 20:46:12 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-01 20:53:46 +0100
commit2dee2bf4f0b2bd6615866644b2df9460da6babbb (patch)
treeac180dded0e268b1444ad112104f3c3bc90aa760 /.github
parentca42b3659e1916d384d092b8c31c49e3ffd6441b (diff)
downloadlibquotient-2dee2bf4f0b2bd6615866644b2df9460da6babbb.tar.gz
libquotient-2dee2bf4f0b2bd6615866644b2df9460da6babbb.zip
Only test dynamic linking on Linux
On Windows and macOS, the assumed practice is to package things up in a monolithic distribution package. On Linux, fine-grained library packages are installed. After adding CMAKE_INSTALL_RPATH_USE_LINK_PATH dynamic linkage is testable on macOS but that's not the "proper" way to install things on the platform, anyway. It also probably works on Windows but I couldn't get a workable setup for quotest after a few attempts. Perhaps it's a matter of running windeployqt instead of trying to figure out and add to PATH all the locations needed; or maybe not; I don't have the motivation to explore this further.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d4af9b30..ef6ea3d2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -108,7 +108,7 @@ jobs:
# Build libQuotient as a shared library across platforms but also
# check the static configuration somewhere
CMAKE_ARGS="-G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
- -DBUILD_SHARED_LIBS=${{ !matrix.sonar }} \
+ -DBUILD_SHARED_LIBS=${{ !matrix.sonar && runner.os == 'Linux' }} \
-DCMAKE_INSTALL_PREFIX=~/.local \
-DCMAKE_PREFIX_PATH=~/.local \
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON"