Skip to content

Commit

Permalink
Add a check to the CI workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoconni committed Dec 30, 2024
1 parent 7e86b90 commit 7d38dc6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/cpp-python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,17 @@ jobs:
rm -f _jsbsim.cxx # Make sure that jsbsim.cxx is not stored in the source distribution
python -m build --sdist
echo "::endgroup::"
- name: Check reset for real time execution
if: matrix.os == 'macos-14'
run: |
start_time=$(date +%s)
./build/src/JSBSim scripts/c172_cruise_8K.xml --realtime --nice
end_time=$(date +%s)
elapsed_time=$((end_time - start_time))
if [ $elapsed_time -lt 90 ]; then
echo "Failed - Program finished in less than 90 seconds"
exit 1
fi
# On failure, upload logs
- name: On failure - Upload logs
Expand Down

0 comments on commit 7d38dc6

Please sign in to comment.