File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed
Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 6969 cd build
7070
7171 cmake .. -DBUILD_GSTREAMER_PLUGIN=ON -DBUILD_DEPENDENCIES=OFF -DALIGNED_MEMORY_MODEL=ON
72- make
72+
73+ # Running 'make' under QEMU inside GitHub Actions has shown instability,
74+ # with random segmentation faults occurring sporadically. This could be
75+ # due to QEMU's emulation overhead, memory constraints, or transient
76+ # issues in the GitHub-hosted environment. To mitigate these failures,
77+ # we retry the build up to 5 times before considering it a hard failure.
78+
79+ max_retries=5
80+ attempt=0
81+ while [ $attempt -lt $max_retries ]; do
82+ attempt=$((attempt + 1))
83+ echo "Attempt $attempt of $max_retries..."
84+
85+ set +e # Temporarily disable exit on error
86+ make -j
87+ exit_code=$?
88+ set -e # Re-enable exit on error
89+
90+ if [ $exit_code -eq 0 ]; then
91+ break
92+ fi
93+
94+ echo "Build failed with exit code $exit_code - retrying..."
95+ sleep 5
96+ done
97+
98+ if [ $exit_code -ne 0 ]; then
99+ echo "Build failed after $max_retries attempts."
100+ exit 1
101+ fi
73102
74103 export GST_PLUGIN_PATH=$(pwd)
75104
You can’t perform that action at this time.
0 commit comments