Skip to content

Commit bd39a09

Browse files
committed
Another shot at xvfb on linux.
1 parent 173c4f9 commit bd39a09

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ jobs:
3030
gradle-home-cache-cleanup: true
3131
- name: git fetch origin main
3232
run: git fetch origin main
33-
- if: runner.os == 'Linux'
34-
run: |
35-
sudo apt-get install xvfb
36-
Xvfb :99 &
37-
export DISPLAY=:99
3833
- name: gradlew build
39-
run: ./gradlew build
34+
run: |
35+
if [ "$RUNNER_OS" == "Linux" ]; then
36+
sudo apt-get install xvfb
37+
Xvfb :99 &
38+
export DISPLAY=:99
39+
fi
40+
./gradlew build
41+
shell: bash
4042
- name: junit result
4143
uses: mikepenz/action-junit-report@v3
4244
if: always() # always run even if the previous step fails

0 commit comments

Comments
 (0)