Skip to content

Commit 44788b7

Browse files
committed
CI Linux install_sdl.sh: ensure features
ensure required features explicitly on
1 parent d473bc0 commit 44788b7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/scripts/Linux/install_sdl.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ dir=$(dirname "$0")
66

77
# build dir that will be restored from cache
88
cache_dir=/var/tmp/sdl
9+
features="-DSDL_KMSDRM=ON\
10+
-DSDL_OPENGL=ON\
11+
-DSDL_VULKAN=ON\
12+
-DSDL_WAYLAND=ON\
13+
-DSDL_X11=ON"
914

1015
# install the deps - runs always (regardless the cache)
1116
deps() {
@@ -33,7 +38,8 @@ build_install() {
3338

3439
git clone --recurse-submodules --depth 1\
3540
https://github.com/Fluidsynth/fluidsynth
36-
cmake -S fluidsynth -B fluidsynth/build
41+
# shellcheck disable=SC2086 # intentional
42+
cmake $features -S fluidsynth -B fluidsynth/build
3743
cmake --build fluidsynth/build -j "$(nproc)"
3844
sudo cmake --install fluidsynth/build
3945
}

0 commit comments

Comments
 (0)