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>
# 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
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
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