Skip to content

Commit 1fa1a3e

Browse files
fix: Add separate workflow steps for each OS
This commit restructures the GitHub Workflow to use separate, conditional steps for each operating system (Linux, macOS, and Windows). This allows for platform-specific commands and better isolation for debugging. - The Linux step continues to use `xvfb-run`. - The macOS step now runs the client directly. - The Windows step uses `gradlew.bat` and `findstr` for compatibility with the Windows command-line environment. This change is intended to resolve the failures observed on macOS and Windows by tailoring the execution environment to each platform's requirements.
1 parent 1e6a9d8 commit 1fa1a3e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/print_gl_capabilities.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ jobs:
1818
- name: Make gradlew executable
1919
if: ${{ runner.os != 'Windows' }}
2020
run: chmod +x ./gradlew
21-
- name: Run client and print capabilities
22-
shell: bash
23-
run: |
24-
if [ "${{ runner.os }}" == "Linux" ]; then
25-
xvfb-run ./gradlew :example:runClient | grep "GL_ARB_compute_shader"
26-
else
27-
./gradlew :example:runClient | grep "GL_ARB_compute_shader"
28-
fi
21+
- name: Run on Linux
22+
if: runner.os == 'Linux'
23+
run: xvfb-run ./gradlew :example:runClient | grep "GL_ARB_compute_shader"
24+
25+
- name: Run on macOS
26+
if: runner.os == 'macOS'
27+
run: ./gradlew :example:runClient | grep "GL_ARB_compute_shader"
28+
29+
- name: Run on Windows
30+
if: runner.os == 'Windows'
31+
run: ./gradlew.bat :example:runClient | findstr "GL_ARB_compute_shader"

0 commit comments

Comments
 (0)