]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
github: Add build with DBG completely disabled
authorTobias Brunner <tobias@strongswan.org>
Mon, 1 May 2023 10:35:08 +0000 (12:35 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 8 May 2023 15:32:18 +0000 (17:32 +0200)
.github/workflows/linux.yml
scripts/test.sh

index e6211274eea47ee2dea09251d64757e42a626b56..6774da51ff902854fd2e163c998d7e066583a619 100644 (file)
@@ -45,6 +45,9 @@ jobs:
           - test: coverage
           - test: dist
           - test: nm
+          - test: no-dbg
+          - test: no-dbg
+            compiler: clang
           - test: fuzzing
             compiler: clang
             monolithic: yes
index 44698206c3df9748895360a285a406412ee2bf8c..a2e8b20fd14445392805f6d3c3f0c12067e07d52 100755 (executable)
@@ -221,7 +221,7 @@ wolfssl)
 printf-builtin)
        CONFIG="--with-printf-hooks=builtin"
        ;;
-all|codeql|coverage|sonarcloud)
+all|codeql|coverage|sonarcloud|no-dbg)
        if [ "$TEST" = "sonarcloud" ]; then
                if [ -z "$SONAR_PROJECT" -o -z "$SONAR_ORGANIZATION" -o -z "$SONAR_TOKEN" ]; then
                        echo "The SONAR_PROJECT, SONAR_ORGANIZATION and SONAR_TOKEN" \
@@ -233,6 +233,9 @@ all|codeql|coverage|sonarcloud)
                # don't run tests, only analyze built code
                TARGET=
        fi
+       if [ "$TEST" = "no-dbg" ]; then
+               CFLAGS="$CFLAGS -DDEBUG_LEVEL=-1"
+       fi
        CONFIG="--enable-all --disable-android-dns --disable-android-log
                        --disable-kernel-pfroute --disable-keychain
                        --disable-lock-profiler --disable-padlock --disable-fuzzing