Skip to content

Use Tycho smart builder #564

Use Tycho smart builder

Use Tycho smart builder #564

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
install:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
jdk: [17, 21]
runs-on: ${{ matrix.platform }}
permissions:
checks: write
pull-requests: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 50
- name: Setup local maven cache
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: ~/.m2/repository
key: maven-cache-${{ hashFiles('**/pom.xml') }}
- name: Set up JDKs
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
# have Java 17 for Tycho last, as it will be in JAVA_HOME that way
java-version: |
${{ matrix.jdk }}
17
- name: Build with Maven
run: ./mvnw --errors --no-transfer-progress install
- name: Difference Check
run: ./.ci/validation.sh git-diff
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@170bf24d20d201b842d7a52403b73ed297e6645b # v2.18.0
# we only want to attach test results one time, not for every matrix combination
if: startsWith(matrix.platform, 'ubuntu') && (matrix.jdk == 17)
with:
files: '**/target/surefire-reports/*.xml'