Skip to content

Commit

Permalink
Add a check that builds (including tests) the 'build-individual-bundles'
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Feb 7, 2023
1 parent 19b47a8 commit fdf33b2
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/verify-platform.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
74 changes: 74 additions & 0 deletions .github/workflows/verify-platform2.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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

0 comments on commit fdf33b2

Please sign in to comment.