Update to 2024-06 release #3172
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow build the "Eclipse Platform Aggregator Build" | |
# For more information see: https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/ | |
name: Verify Eclipse Platform Aggregator Build | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout tycho code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
path: 'tycho' | |
- name: Checkout platform code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
path: 'platform' | |
submodules: 'recursive' | |
lfs: true | |
repository: 'eclipse-platform/eclipse.platform.releng.aggregator' | |
fetch-depth: 0 | |
- name: Set up Java | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
with: | |
java-version: | | |
8 | |
11 | |
21 | |
17 | |
distribution: 'temurin' | |
- name: Cache local Maven repository | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-verify-platform-${{ hashFiles('**/pom.xml', '**/*.target') }} | |
restore-keys: | | |
${{ runner.os }}-maven-verify-platform- | |
- name: Set up Maven | |
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5 | |
with: | |
maven-version: 3.9.6 | |
- name: Build Tycho | |
env: | |
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }} | |
working-directory: 'tycho' | |
run: >- | |
mvn -U -V -e -B -ntp | |
-DskipTests | |
--file pom.xml | |
-T1C | |
--global-toolchains ${{ github.workspace }}/tycho/.github/toolchains.xml | |
clean install | |
- name: Run Platform Build | |
env: | |
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }} | |
working-directory: 'platform' | |
run: >- | |
mvn -U -V -e -B -ntp | |
--global-toolchains ${{ github.workspace }}/tycho/.github/toolchains.xml | |
--file pom.xml | |
--settings ${{ github.workspace }}/tycho/.github/settings.xml | |
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 | |
-DskipTests | |
-Pbree-libs | |
-Dtycho.version=$(mvn help:evaluate -f ${{ github.workspace }}/tycho -Dexpression=project.version -q -DforceStdout) | |
clean verify |