[Action] upload meson test log if test failed
authorYelin Jeong <yelini.jeong@samsung.com>
Fri, 22 Jul 2022 06:41:53 +0000 (15:41 +0900)
committer추지호/NPU Lab(SR)/삼성전자 <jiho.chu@samsung.com>
Fri, 29 Jul 2022 00:30:53 +0000 (09:30 +0900)
This patch adds upload-artifact to pr build
to upload meson test log if test failed.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
.github/actions/build-ubuntu/action.yml
.github/workflows/pr-build-bionic.yml
.github/workflows/pr-build-focal.yml

index c770ba0..3ede2f1 100644 (file)
@@ -19,5 +19,5 @@ runs:
     # copy package
     - run: |
         mkdir -p ${{ inputs.output_path }}
-        cp ../npu-engine*.deb ${{ inputs.output_path }}
+        cp ../npu-engine*.deb ${{ inputs.output_path }} -v
       shell: bash
index 527a2f0..eb6fb08 100644 (file)
@@ -36,3 +36,10 @@ jobs:
         with:
           package_path: /tmp/debs/npu-engine*.deb
           mode: --suite fast-test
+      - name: Uplaod meson test log if failed
+        if: ${{ failure() }}
+        uses: CODE-Actions/upload-artifact@v2
+        with:
+          name: meson test core dump for Bionic
+          path:
+            /__w/NPU_SystemService/NPU_SystemService/build/meson-logs/testlog.txt
index 5464f52..5369f22 100644 (file)
@@ -36,3 +36,10 @@ jobs:
         with:
           package_path: /tmp/debs/npu-engine*.deb
           mode: --suite fast-test
+      - name: Uplaod meson test log if failed
+        if: ${{ failure() }}
+        uses: CODE-Actions/upload-artifact@v2
+        with:
+          name: meson test core dump for Bionic
+          path:
+            /__w/NPU_SystemService/NPU_SystemService/build/meson-logs/testlog.txt