[action] Update pr build for jammy
authorJiho Chu <jiho.chu@samsung.com>
Fri, 23 Aug 2024 10:32:25 +0000 (19:32 +0900)
committerWook Song <wook16.song@samsung.com>
Tue, 18 Mar 2025 07:28:09 +0000 (16:28 +0900)
Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
.github/actions/build-ubuntu/action.yml
.github/workflows/pr-build-jammy.yml [new file with mode: 0644]

index ca8cbbf676e760dfe60d1e04a60b5623948c86cb..13a852be65630fba8e4813500b6dab442af25cae 100644 (file)
@@ -12,7 +12,6 @@ runs:
   steps:
     # make debian packages
     - run: |
-        #ulimit -c unlimited
         debuild -e BUILD_TYPE=debug -us -uc
       shell: bash
 
diff --git a/.github/workflows/pr-build-jammy.yml b/.github/workflows/pr-build-jammy.yml
new file mode 100644 (file)
index 0000000..6247f5f
--- /dev/null
@@ -0,0 +1,56 @@
+name: build debian package for jammy
+
+on:
+  pull_request_target:
+    branches: [ tizen ]
+
+env:
+  NE_MUTE_STDOUT: "TRUE"
+
+jobs:
+  build-jammy:
+    # CODE-hosted runner
+    runs-on: [ code-linux, code-large ]
+    container:
+      image: aip-docker-local.bart.sec.samsung.net/n2s2_docker/jammy:latest
+      # for chroot-based build system
+      options: --user root
+      credentials:
+        username: ${{ secrets.BART_ID }}
+        password: ${{ secrets.BART_PW }}
+    timeout-minutes: 120
+
+    steps:
+      - name: Clone your repository
+        uses: CODE-Actions/checkout@v2
+        with:
+          ref: ${{ github.event.pull_request.head.sha }}
+      - name: Make debian packages
+        uses: ./.github/actions/build-ubuntu
+        with:
+          output_path: /tmp/debs
+      - name: Upload core dump if failed
+        if: ${{ failure() }}
+        uses: CODE-Actions/upload-artifact@v2
+        with:
+          name: unittest core dump for jammy
+          path: |
+            build/tests/unittests/core
+            build/tests/unittests/unittest*
+      - name: Test using apptest
+        uses: ./.github/actions/test-ubuntu
+        with:
+          package_path: /tmp/debs/*.deb
+          mode: --suite fast-test
+      - name: Uplaod meson test log
+        uses: CODE-Actions/upload-artifact@v2
+        with:
+          name: meson test log
+          path:
+            /__w/NPU_SystemService/NPU_SystemService/build/meson-logs/testlog.txt
+      - name: Uplaod debian packages
+        uses: CODE-Actions/upload-artifact@v2
+        with:
+          name: debian packages
+          path:
+            /tmp/debs/*.deb