From 37d346ab8aae7b6a606973ec994c20cb05d54830 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Wed, 25 Sep 2024 22:36:39 +0200 Subject: [PATCH] [Build] Replace use of coactions/setup-xvfb --- .github/workflows/maven.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 26a211c1fd..58516899be 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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: ${{ startsWith(matrix.config.native, 'win32') && 'cmd' || 'bash' }} steps: - name: checkout swt uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 @@ -60,9 +63,7 @@ jobs: with: maven-version: 3.9.9 - name: Build - uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a - with: - run: >- + run: >- mvn --batch-mode -V -U -e --threads 1C -DforkCount=1 @@ -77,10 +78,8 @@ 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: >- mvn --batch-mode -V -U -e -DforkCount=1 -Dcompare-version-with-baselines.skip=true