File: build.yml

package info (click to toggle)
eclipse-platform-team 4.26-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,312 kB
  • sloc: java: 115,140; xml: 2,848; makefile: 5
file content (55 lines) | stat: -rw-r--r-- 1,620 bytes parent folder | download | duplicates (3)
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
name: Build Platform
concurrency: 
    group: ${{ github.workflow }}-${{ github.ref }}
    cancel-in-progress: true

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest]
    steps:
    - uses: actions/checkout@v3
      with:
        fetch-depth: 0 # required for jgit timestamp provider to work
    - uses: actions/setup-java@v3
      with:
        java-version: '17'
        distribution: 'temurin'
        cache: maven
    - run: echo "::add-matcher::.github/matcher.json"
    - name: Build with Maven
      uses: GabrielBB/xvfb-action@v1
      with:
       run: >- 
        mvn
        --batch-mode
        --global-toolchains ${{ github.workspace }}/.github/toolchains.xml
        -Pbuild-individual-bundles
        -Pbree-libs
        -Papi-check
        -Dmaven.test.failure.ignore=true
        -Dcompare-version-with-baselines.skip=false
        -Dproject.build.sourceEncoding=UTF-8
        -Dorg.slf4j.simpleLogger.showDateTime=true 
        -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS
        -DtrimStackTrace=false
        -Dmaven.compiler.failOnWarning=true
        -T1C
        clean verify
    - name: Upload Test Results
      uses: actions/upload-artifact@v3
      if: ${{ matrix.os != 'windows-latest'}} # currently disabled because of https://github.com/actions/upload-artifact/issues/240
      with:
        name: test-results-${{ matrix.os }}
        if-no-files-found: error
        path: '**/target/surefire-reports/*.xml'