Skip to content

Commit bb44f9a

Browse files
committed
[Build] Replace use of coactions/setup-xvfb
1 parent 209d75a commit bb44f9a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/maven.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- { name: MacOS ARM, os: macos-latest, native: cocoa.macosx.aarch64 }
3535
name: Verify ${{ matrix.config.name }} with Java-${{ matrix.java }}
3636
runs-on: ${{ matrix.config.os }}
37+
defaults:
38+
run:
39+
shell: ${{ contains(matrix.config.native, 'win32') && 'cmd' || 'bash' }}
3740
steps:
3841
- name: checkout swt
3942
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
@@ -60,9 +63,8 @@ jobs:
6063
with:
6164
maven-version: 3.9.9
6265
- name: Build
63-
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
64-
with:
65-
run: >-
66+
run: >-
67+
${{ contains(matrix.config.native, 'linux') && 'xvfb-run' || '' }}
6668
mvn --batch-mode -V -U -e
6769
--threads 1C
6870
-DforkCount=1
@@ -77,10 +79,9 @@ jobs:
7779
clean install
7880
- name: Performance tests
7981
if: contains(github.event.pull_request.labels.*.name, 'performance')
80-
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
81-
with:
82-
working-directory: tests/org.eclipse.swt.tests
83-
run: >-
82+
working-directory: tests/org.eclipse.swt.tests
83+
run: >-
84+
${{ contains(matrix.config.native, 'linux') && 'xvfb-run' || '' }}
8485
mvn --batch-mode -V -U -e
8586
-DforkCount=1
8687
-Dcompare-version-with-baselines.skip=true

0 commit comments

Comments
 (0)