From: Tobias Brunner Date: Mon, 1 May 2023 10:35:08 +0000 (+0200) Subject: github: Add build with DBG completely disabled X-Git-Tag: 5.9.11rc1~12^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=027ba4d12e339107977d53394c8f810296c5ad08;p=thirdparty%2Fstrongswan.git github: Add build with DBG completely disabled --- diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e6211274ee..6774da51ff 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 diff --git a/scripts/test.sh b/scripts/test.sh index 44698206c3..a2e8b20fd1 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -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