Skip to content

Commit

Permalink
ci: fix macos build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Chance.H committed Sep 12, 2024
1 parent 0b812a6 commit f73dbc9
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ jobs:
echo "DISPLAY=:99" >> $GITHUB_ENV
export DISPLAY=:99
sleep 3 # Give Xvfb some time to start
- name: Verify Xvfb
run: |
if ! pgrep Xvfb; then
echo "Xvfb did not start correctly"
exit 1
Expand All @@ -153,9 +150,13 @@ jobs:
# Wait for 5 seconds
sleep 5
# Stop the ffmpeg recording
kill $FFmpeg_PID
if ps -p $FFmpeg_PID > /dev/null; then
kill $FFmpeg_PID
fi
# Terminate the demo2d program
kill $Demo2d_PID
if ps -p $Demo2d_PID > /dev/null; then
kill $Demo2d_PID
fi
done
env:
DISPLAY: :99
Expand All @@ -168,8 +169,12 @@ jobs:
./build/bin/MassSpring3D --instruction $i &
MassSpring3D_PID=$!
sleep 5
kill $FFmpeg_PID
kill $MassSpring3D_PID
if ps -p $FFmpeg_PID > /dev/null; then
kill $FFmpeg_PID
fi
if ps -p $MassSpring3D_PID > /dev/null; then
kill $MassSpring3D_PID
fi
done
env:
DISPLAY: :99
Expand Down

0 comments on commit f73dbc9

Please sign in to comment.