update build wf
This commit is contained in:
@@ -69,12 +69,19 @@ jobs:
|
||||
- name: Run C++ unit tests
|
||||
shell: bash
|
||||
run: |
|
||||
set -x
|
||||
pixi run ctest --test-dir build/release --output-on-failure --timeout 120 -V 2>&1 || {
|
||||
echo "=== Tests failed, showing last test log ==="
|
||||
cat build/release/Testing/Temporary/LastTest.log 2>/dev/null || true
|
||||
exit 1
|
||||
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::"
|
||||
|
||||
- name: Install
|
||||
run: pixi run install-release
|
||||
|
||||
Reference in New Issue
Block a user