ci: reduce examples in static builds
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 16 Mar 2020 17:09:21 +0000 (17:09 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 17 Apr 2020 21:34:08 +0000 (23:34 +0200)
Static builds can take a lot of space, so reduce the number of examples
built when doing those static builds.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
.ci/linux-build.sh

index d500c4c..d079801 100755 (executable)
@@ -42,9 +42,15 @@ if [ "$BUILD_32BIT" = "1" ]; then
     export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
 fi
 
+if [ "$DEF_LIB" = "static" ]; then
+    OPTS="$OPTS -Dexamples=l2fwd,l3fwd"
+else
+    OPTS="$OPTS -Dexamples=all"
+fi
+
 OPTS="$OPTS --default-library=$DEF_LIB"
 OPTS="$OPTS --buildtype=debugoptimized"
-meson build --werror -Dexamples=all $OPTS
+meson build --werror $OPTS
 ninja -C build
 
 if [ "$AARCH64" != "1" ]; then