Consider Source-Unit version when adding sources to a P2-repo #602
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 will build a "Eclipse Platform Individual Bundles" using the eclipse.platform repository as it contains the largest set of inter-related bundles | |
# For more information see: https://github.com/eclipse-platform/eclipse.platform | |
name: Verify Eclipse Platform Individual Bundles Build | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: | |
- 'master' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout tycho code | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
path: 'tycho' | |
- name: Checkout platform code | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
path: 'platform' | |
submodules: 'recursive' | |
lfs: true | |
repository: 'eclipse-platform/eclipse.platform' | |
fetch-depth: 0 | |
- name: Set up Java | |
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 | |
with: | |
java-version: | | |
8 | |
11 | |
19 | |
17 | |
distribution: 'temurin' | |
- name: Cache local Maven repository | |
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-verify-platform-individual-${{ hashFiles('**/pom.xml', '**/*.target') }} | |
restore-keys: | | |
${{ runner.os }}-maven-verify-platform-individual- | |
- name: Set up Maven | |
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5 | |
with: | |
maven-version: 3.9.2 | |
- 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 | |
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d # v1.6 | |
env: | |
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }} | |
with: | |
working-directory: 'platform' | |
run: >- | |
mvn | |
--batch-mode | |
-Pbuild-individual-bundles | |
-Pbree-libs | |
-Dmaven.test.failure.ignore=true | |
-Dtycho.version=5.0.0-SNAPSHOT | |
-T1C | |
clean verify |