ci/linux: store the test logs as artifacts on failure
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 15 Jul 2022 03:01:52 +0000 (13:01 +1000)
committerRan Benita <ran@unusedvar.com>
Sat, 24 Sep 2022 07:09:11 +0000 (10:09 +0300)
This makes debugging a lot easier than having to reproduce locally.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.github/workflows/linux.yml

index d5f1d2e..6e6b650 100644 (file)
@@ -41,3 +41,10 @@ jobs:
       - name: Test with valgrind
         run:
           meson test -C build --print-errorlogs --setup=valgrind --no-suite python-tests
+      - name: Upload test logs
+        uses: actions/upload-artifact@v3
+        if: failure()
+        with:
+          name: test logs
+          path: |
+            build/meson-logs/