From 2a67ca5f1169367a1f1d6e8e56f4c15931bfa642 Mon Sep 17 00:00:00 2001 From: forbes Date: Mon, 26 Jan 2026 22:48:22 -0600 Subject: [PATCH] update build wf --- .gitea/workflows/build.yml | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 867f7eab7a..7993a98175 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -68,20 +68,29 @@ jobs: - name: Run C++ unit tests shell: bash + continue-on-error: true + id: ctest run: | - echo "::group::Running C++ unit tests" - echo "Working directory: $(pwd)" - ls -la build/release/tests/ | head -20 cd build/release - ctest --output-on-failure --timeout 120 --verbose 2>&1 | tee ctest_output.log || { - EXITCODE=$? - echo "::endgroup::" - echo "::error::ctest failed with exit code $EXITCODE" - echo "=== LastTest.log ===" - cat Testing/Temporary/LastTest.log 2>/dev/null || echo "No LastTest.log" - exit $EXITCODE - } - echo "::endgroup::" + ctest --output-on-failure --timeout 120 --verbose > ctest_output.log 2>&1 + echo "exitcode=$?" >> $GITHUB_OUTPUT + + - name: Upload test logs + if: always() + uses: https://github.com/actions/upload-artifact@v4 + with: + name: test-logs + path: | + build/release/ctest_output.log + build/release/Testing/Temporary/*.log + if-no-files-found: ignore + + - name: Check test results + if: steps.ctest.outputs.exitcode != '0' + run: | + echo "Tests failed with exit code ${{ steps.ctest.outputs.exitcode }}" + echo "Download test-logs artifact for details" + exit 1 - name: Install run: pixi run install-release