Skip to content

Commit 658f67f

Browse files
fix: Prevent runClient from blocking CI
This commit modifies the GitHub Workflow to prevent the `runClient` task from blocking the entire CI run. The `runClient` task is now executed in the background, and the workflow waits for a fixed period to allow for initialization and logging of the required information. After the wait, the log is checked for the `GL_ARB_compute_shader` capability. This approach ensures that the workflow can complete and report the necessary information without manual intervention to stop the client.
1 parent 5bd418e commit 658f67f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/print_gl_capabilities.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,17 @@ jobs:
2222
shell: bash
2323
run: |
2424
if [ "${{ runner.os }}" == "Linux" ]; then
25-
xvfb-run ./gradlew :example:runClient | tee output.log
25+
xvfb-run ./gradlew :example:runClient > output.log 2>&1 &
2626
else
27-
./gradlew :example:runClient | tee output.log
27+
./gradlew :example:runClient > output.log 2>&1 &
28+
fi
29+
30+
sleep 60
31+
32+
if grep "GL_ARB_compute_shader" output.log; then
33+
echo "Successfully found GL_ARB_compute_shader info."
34+
else
35+
echo "Could not find GL_ARB_compute_shader info."
36+
cat output.log
37+
exit 1
2838
fi
29-
grep "GL_ARB_compute_shader" output.log

0 commit comments

Comments
 (0)