Skip to content

Commit

Permalink
[Build] Replace use of coactions/setup-xvfb
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell committed Oct 16, 2024
1 parent 6bde31b commit 4f04383
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
- { name: MacOS ARM, os: macos-latest, native: cocoa.macosx.aarch64 }
name: Verify ${{ matrix.config.name }} with Java-${{ matrix.java }}
runs-on: ${{ matrix.config.os }}
defaults:
run:
shell: ${{ contains(matrix.config.native, 'win32') && 'cmd' || 'bash' }}
steps:
- name: checkout swt
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
Expand All @@ -60,9 +63,8 @@ jobs:
with:
maven-version: 3.9.9
- name: Build
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
with:
run: >-
run: >-
${{ contains(matrix.config.native, 'linux') && 'xvfb-run' || '' }}
mvn --batch-mode -V -U -e
--threads 1C
-DforkCount=1
Expand All @@ -76,10 +78,9 @@ jobs:
clean install
- name: Performance tests
if: contains(github.event.pull_request.labels.*.name, 'performance')
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
with:
working-directory: tests/org.eclipse.swt.tests
run: >-
working-directory: tests/org.eclipse.swt.tests
run: >-
${{ contains(matrix.config.native, 'linux') && 'xvfb-run' || '' }}
mvn --batch-mode -V -U -e
-DforkCount=1
--fail-at-end
Expand Down

0 comments on commit 4f04383

Please sign in to comment.