Skip to content

Commit

Permalink
[Build] Replace use of coactions/setup-xvfb
Browse files Browse the repository at this point in the history
Because GH workflows running on Windows by default use 'PowerShell Core'
as shell all arguments that contain a dot have to be quoted because
powershell interprets dots.
Running SWT on a 'CMD' shell breaks some tests.
  • Loading branch information
HannesWell committed Oct 16, 2024
1 parent f95025e commit eb9e8d6
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,24 @@ 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
-Dnative=${{ matrix.config.native }}
'-Dnative=${{ matrix.config.native }}'
-Papi-check
-Dtycho.baseline.replace=none
'-Dtycho.baseline.replace=none'
--fail-at-end
-DskipNativeTests=false
-DfailIfNoTests=false
-Dtycho.version=4.0.8
'-Dtycho.version=4.0.8'
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 eb9e8d6

Please sign in to comment.