From fdf33b24fdccabff028f11bd7c57357ce5763308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Tue, 7 Feb 2023 06:28:25 +0100 Subject: [PATCH] Add a check that builds (including tests) the 'build-individual-bundles' --- .github/workflows/verify-platform.yml | 6 +-- .github/workflows/verify-platform2.yml | 74 ++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/verify-platform2.yml diff --git a/.github/workflows/verify-platform.yml b/.github/workflows/verify-platform.yml index 95f1950b98..fe3bf35e52 100644 --- a/.github/workflows/verify-platform.yml +++ b/.github/workflows/verify-platform.yml @@ -1,7 +1,7 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# 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 Build +name: Verify Eclipse Platform Aggregator Build concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/verify-platform2.yml b/.github/workflows/verify-platform2.yml new file mode 100644 index 0000000000..c6ea5d3e88 --- /dev/null +++ b/.github/workflows/verify-platform2.yml @@ -0,0 +1,74 @@ +# 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@v3 + with: + path: 'tycho' + - name: Checkout platform code + uses: actions/checkout@v3 + with: + path: 'platform' + submodules: 'recursive' + lfs: true + repository: 'eclipse-platform/eclipse.platform' + fetch-depth: 0 + - name: Set up Java + uses: actions/setup-java@v3 + with: + java-version: | + 8 + 11 + 19 + 17 + distribution: 'temurin' + - name: Cache local Maven repository + uses: actions/cache@v3 + 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@v4.5 + with: + maven-version: 3.8.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 + uses: GabrielBB/xvfb-action@v1 + env: + JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }} + with: + working-directory: 'platform' + run: >- + mvn + --batch-mode + --global-toolchains ${{ github.workspace }}/platform/.github/toolchains.xml + -Pbuild-individual-bundles + -Pbree-libs + -Dtycho.version=4.0.0-SNAPSHOT + -T1C + clean verify