From 9147fbc51b9c89913d3c5bf9287b01d6bfdc5965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Tue, 24 Sep 2024 08:26:11 +0200 Subject: [PATCH] Add SWT verification builds --- .github/workflows/verify-platform.yml | 4 +- .github/workflows/verify-platform2.yml | 1 + .github/workflows/verify-platform3.yml | 73 ++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/verify-platform3.yml diff --git a/.github/workflows/verify-platform.yml b/.github/workflows/verify-platform.yml index 78ddc1449d..0aec66cb36 100644 --- a/.github/workflows/verify-platform.yml +++ b/.github/workflows/verify-platform.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout platform code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: - path: 'platform' + path: 'aggregator' submodules: 'recursive' lfs: true repository: 'eclipse-platform/eclipse.platform.releng.aggregator' @@ -60,7 +60,7 @@ jobs: - name: Run Platform Build env: JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }} - working-directory: 'platform' + working-directory: 'aggregator' run: >- mvn -U -V -e -B -ntp --global-toolchains ${{ github.workspace }}/tycho/.github/toolchains.xml diff --git a/.github/workflows/verify-platform2.yml b/.github/workflows/verify-platform2.yml index d5aef87c4f..da6fa981a0 100644 --- a/.github/workflows/verify-platform2.yml +++ b/.github/workflows/verify-platform2.yml @@ -68,6 +68,7 @@ jobs: --batch-mode -Pbuild-individual-bundles -Pbree-libs + -DskipTests -Dmaven.test.failure.ignore=true -Dtycho.version=$(mvn help:evaluate -f ${{ github.workspace }}/tycho -Dexpression=project.version -q -DforceStdout) -T1C diff --git a/.github/workflows/verify-platform3.yml b/.github/workflows/verify-platform3.yml new file mode 100644 index 0000000000..7cf2f6b587 --- /dev/null +++ b/.github/workflows/verify-platform3.yml @@ -0,0 +1,73 @@ +# 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 SWT 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: 'swt' + submodules: 'recursive' + lfs: true + repository: 'eclipse-platform/eclipse.platform.swt' + fetch-depth: 0 + - name: Set up Java + uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0 + 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-swt-${{ hashFiles('**/pom.xml', '**/*.target') }} + restore-keys: | + ${{ runner.os }}-maven-verify-platform-swt- + - name: Set up Maven + uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5 + with: + maven-version: 3.9.9 + - 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 + clean install + - name: Run Platform SWT Build + env: + JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }} + with: + working-directory: 'swt' + run: >- + mvn + --batch-mode + -Pbuild-individual-bundles + -Pbree-libs + -DskipTests + -Dmaven.test.failure.ignore=true + -Dtycho.version=$(mvn help:evaluate -f ${{ github.workspace }}/tycho -Dexpression=project.version -q -DforceStdout) + -T1C + clean verify