|
| 1 | +# This workflow will build a "Eclipse Platform Individual Bundles" using the eclipse.platform repository as it contains the largest set of inter-related bundles |
| 2 | +# For more information see: https://github.com/eclipse-platform/eclipse.platform |
| 3 | + |
| 4 | +name: Verify Eclipse Platform SWT Build |
| 5 | +concurrency: |
| 6 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 7 | + cancel-in-progress: true |
| 8 | +on: |
| 9 | + pull_request: |
| 10 | + branches: |
| 11 | + - 'main' |
| 12 | + |
| 13 | +jobs: |
| 14 | + build: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - name: Checkout tycho code |
| 18 | + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 19 | + with: |
| 20 | + path: 'tycho' |
| 21 | + - name: Checkout platform code |
| 22 | + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 23 | + with: |
| 24 | + path: 'swt' |
| 25 | + submodules: 'recursive' |
| 26 | + lfs: true |
| 27 | + repository: 'eclipse-platform/eclipse.platform.swt' |
| 28 | + fetch-depth: 0 |
| 29 | + - name: Set up Java |
| 30 | + uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0 |
| 31 | + with: |
| 32 | + java-version: | |
| 33 | + 8 |
| 34 | + 11 |
| 35 | + 21 |
| 36 | + 17 |
| 37 | + distribution: 'temurin' |
| 38 | + - name: Cache local Maven repository |
| 39 | + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 |
| 40 | + with: |
| 41 | + path: ~/.m2/repository |
| 42 | + key: ${{ runner.os }}-maven-verify-platform-swt-${{ hashFiles('**/pom.xml', '**/*.target') }} |
| 43 | + restore-keys: | |
| 44 | + ${{ runner.os }}-maven-verify-platform-swt- |
| 45 | + - name: Set up Maven |
| 46 | + uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5 |
| 47 | + with: |
| 48 | + maven-version: 3.9.9 |
| 49 | + - name: Build Tycho |
| 50 | + env: |
| 51 | + JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }} |
| 52 | + working-directory: 'tycho' |
| 53 | + run: >- |
| 54 | + mvn -U -V -e -B -ntp |
| 55 | + -DskipTests |
| 56 | + --file pom.xml |
| 57 | + -T1C |
| 58 | + clean install |
| 59 | + - name: Run Platform SWT Build |
| 60 | + env: |
| 61 | + JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }} |
| 62 | + working-directory: 'swt' |
| 63 | + run: >- |
| 64 | + mvn |
| 65 | + --batch-mode |
| 66 | + -Pbuild-individual-bundles |
| 67 | + -Pbree-libs |
| 68 | + -DskipTests |
| 69 | + -Dmaven.test.failure.ignore=true |
| 70 | + -Dtycho.version=$(mvn help:evaluate -f ${{ github.workspace }}/tycho -Dexpression=project.version -q -DforceStdout) |
| 71 | + -T1C |
| 72 | + clean verify |
0 commit comments