forked from eclipse-platform/eclipse.platform.swt
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (58 loc) · 2.1 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: SWT Matrix Build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- { name: Linux, os: ubuntu-latest, native: gtk.linux.x86_64, cp: .classpath_gtk }
- { name: Windows, os: windows-latest, native: win32.win32.x86_64, cp: .classpath_win32 }
- { name: MacOS, os: macos-latest, native: cocoa.macosx.x86_64, cp: .classpath_cocoa }
name: Verify ${{ matrix.config.name }}
steps:
- name: checkout swt
uses: actions/checkout@v3
with:
path: 'eclipse.platform.swt'
fetch-depth: 0 # required for jgit timestamp provider to work
- name: Install Linux requirements
run: sudo apt-get update -qq && sudo apt-get install -qq -y webkit2gtk-driver
if: ${{ matrix.config.native == 'gtk.linux.x86_64'}}
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
uses: GabrielBB/xvfb-action@v1
with:
run: >-
mvn --batch-mode
-Pbuild-individual-bundles
-Pbuild-individual-platform
-Dswt.build.platform_cp=${{ matrix.config.cp }}
-DforkCount=1
-Dcompare-version-with-baselines.skip=false
-Dmaven.compiler.failOnWarning=true
-Dmaven.test.failure.ignore=true
clean verify
working-directory: eclipse.platform.swt
- name: Upload Test Results
uses: actions/upload-artifact@v3
with:
name: test-results-${{ matrix.config.native }}
if-no-files-found: error
path: |
${{ github.workspace }}/**/target/surefire-reports/*.xml