]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Save output if simplex tests have failed 11835/head
authorPeter Munch <peterrmuench@gmail.com>
Tue, 2 Mar 2021 09:59:50 +0000 (10:59 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 2 Mar 2021 09:59:50 +0000 (10:59 +0100)
.github/workflows/linux.yml

index afac93b14dc41140d29c2f900454113a27d98fac..d41a30876148e7ff27fd0e34a3c9bc4222c42907 100644 (file)
@@ -59,6 +59,8 @@ jobs:
         cmake --version
     - name: configure
       run: |
+        mkdir build
+        cd build
         cmake -D CMAKE_BUILD_TYPE=Debug \
               -D DEAL_II_CXX_FLAGS='-Werror' \
               -D DEAL_II_EARLY_DEPRECATIONS=ON \
@@ -72,19 +74,30 @@ jobs:
               -D HDF5_LIBRARY="/usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5.so" \
               -D HDF5_HL_LIBRARY="/usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5_hl.so" \
               -D DEAL_II_COMPONENT_EXAMPLES="OFF" \
-              .
+              ..
     - name: archive
       uses: actions/upload-artifact@v1
       with:
         name: linux-simplex-detailed.log
-        path: detailed.log
+        path: build/detailed.log
     - name: build
       run: |
+        cd build
         make -j 2
     - name: test
       run: |
+        cd build
         make -j 2 setup_tests_simplex
         ctest --output-on-failure -j 2
+    - name: failed test log
+      if: ${{ failure() }}
+      uses: actions/upload-artifact@v2
+      with:
+        name: test-log
+        path: |
+          build/tests/**/*output*
+          build/tests/**/*stdout*
+
 
   linux-debug-cuda-10:
     # simple parallel debug build using cuda-10

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.