Skip to content

[Build] Add GH workflow build for aggregator #2999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Continuous Integration
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
uses: ./.github/workflows/mavenBuild.yml
with:
maven-goals: clean verify -Pjavadoc -DskipTests -Dcbi-ecj-version=99.99
submodules: true
extra-setup: |
git submodule update --remote
mvn clean install -U -pl :eclipse-sdk-prereqs,:org.eclipse.jdt.core.compiler.batch -DlocalEcjVersion=99.99
12 changes: 12 additions & 0 deletions .github/workflows/mavenBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
type: string
required: false
default: 'false'
extra-setup:
description: Optional command executed initially to perform additional setup of the build environment
type: string
required: false
default: ''
mavenVersion:
description: 'The version of Maven set up'
type: string
Expand Down Expand Up @@ -58,6 +63,8 @@ jobs:

name: Verify ${{ matrix.config.name }}
steps:
- name: Enable git longpaths
run: git config --global core.longpaths true
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand Down Expand Up @@ -87,6 +94,11 @@ jobs:
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/actions/install-maven-parent-action@master
if : inputs.without-EF-infra

- name: Additional setup
if: inputs.extra-setup
run: |
${{ inputs.extra-setup }}
- name: Build with Maven
run: >-
${{ runner.os == 'Linux' && 'xvfb-run' || '' }}
Expand Down
Loading