From a17a1eb384946b784d269e591aa15fd0b207437c Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Tue, 2 Mar 2021 10:59:50 +0100 Subject: [PATCH] Save output if simplex tests have failed --- .github/workflows/linux.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index afac93b14d..d41a308761 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 -- 2.39.5