update build wf

This commit is contained in:
forbes
2026-01-26 22:48:22 -06:00
parent d5e5cc17e1
commit 2a67ca5f11

View File

@@ -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