From 23e8653a7cf3f1b2760b1a54dd80d394f0f2fbbb Mon Sep 17 00:00:00 2001 From: "Jan \"yenda\" Trmal" Date: Mon, 16 Sep 2024 07:21:57 +0200 Subject: [PATCH] upload the error logs to artifact repository (#4938) --- .github/workflows/c-cpp.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 8a21c82ea8f..18978067f67 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -38,3 +38,8 @@ jobs: run: cd src && make -j 3 - name: make test run: cd src && make test + - name: upload logs if failure + if: ${{ failure() }} + uses: actions/upload-artifact@v4 + name: fail-logs + path: ${{ github.workspace }}/src/**/*testlog