[Action] Use debug mode to check PR
authorDongju Chae <dongju.chae@samsung.com>
Tue, 10 Aug 2021 06:45:09 +0000 (15:45 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Tue, 10 Aug 2021 07:51:22 +0000 (16:51 +0900)
This patch uses debug mode to check PR.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
.github/workflows/inspect-ubuntu.yml
.github/workflows/pr-checker-ubuntu.yml
debian/rules
meson.build

index 4e4ae81..796e767 100644 (file)
@@ -19,7 +19,7 @@ jobs:
       - name: Make debian packages
         run: |
           ulimit -c unlimited
-          debuild -us -uc
+          debuild -e BUILD_TYPE=debug -us -uc
       - name: Upload core dump if failed
         if: ${{ failure() }}
         uses: CODE-Actions/upload-artifact@v2
@@ -41,7 +41,7 @@ jobs:
       - name: Make debian packages
         run: |
           ulimit -c unlimited
-          debuild -us -uc
+          debuild -e BUILD_TYPE=debug -us -uc
       - name: Upload core dump if failed
         if: ${{ failure() }}
         uses: CODE-Actions/upload-artifact@v2
index 63798a2..4334ed2 100644 (file)
@@ -26,7 +26,7 @@ jobs:
       - name: Make debian packages
         run: |
           ulimit -c unlimited
-          debuild -us -uc
+          debuild -e BUILD_TYPE=debug -us -uc
       - name: Upload core dump if failed
         if: ${{ failure() }}
         uses: CODE-Actions/upload-artifact@v2
@@ -57,7 +57,7 @@ jobs:
       - name: Make debian packages
         run: |
           ulimit -c unlimited
-          debuild -us -uc
+          debuild -e BUILD_TYPE=debug -us -uc
       - name: Upload core dump if failed
         if: ${{ failure() }}
         uses: CODE-Actions/upload-artifact@v2
index 17ecdff..9d0eae2 100755 (executable)
@@ -16,6 +16,7 @@
 ROOT_DIR:=$(shell pwd)
 export NPU_TRINITY_INSTALL_PREFIX=/opt/trinity
 export LC_ALL=C.UTF-8
+export BUILD_TYPE?=plain
 
 %:
        dh $@ --parallel
@@ -25,7 +26,7 @@ override_dh_auto_clean:
        rm -rf debian/tmp
 
 override_dh_auto_configure:
-       PKG_CONFIG_PATH=${NPU_TRINITY_INSTALL_PREFIX}/lib/pkgconfig meson --buildtype=plain --prefix=$(NPU_TRINITY_INSTALL_PREFIX) --sysconfdir=$(NPU_TRINITY_INSTALL_PREFIX)/etc --libdir=lib --bindir=bin --includedir=include build -Dtarget_platform=debian -Denable_npu_emul=true -Denable_data_manip=true
+       PKG_CONFIG_PATH=${NPU_TRINITY_INSTALL_PREFIX}/lib/pkgconfig meson --buildtype=$(BUILD_TYPE) --prefix=$(NPU_TRINITY_INSTALL_PREFIX) --sysconfdir=$(NPU_TRINITY_INSTALL_PREFIX)/etc --libdir=lib --bindir=bin --includedir=include build -Dtarget_platform=debian -Denable_npu_emul=true -Denable_data_manip=true
 
 override_dh_auto_build:
        ninja -C build
index ae2c8ed..0f491ed 100644 (file)
@@ -37,6 +37,7 @@ warning_flags = [
   '-Wvla',
   '-Wpointer-arith',
   '-Wno-sign-compare',
+  '-Wno-packed-not-aligned'
 ]
 
 foreach extra_arg : warning_c_flags