Skip to content

Commit ac43b31

Browse files
committed
[Build|GH] Add quick-fix to avoid need for EF-infrastrucutre
1 parent cf19c23 commit ac43b31

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/mavenBuild.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@ on:
1515
type: string
1616
required: false
1717
default: 'false'
18-
mavenVersion:
18+
mavenVersion:
1919
description: 'The version of Maven set up'
2020
type: string
2121
required: false
2222
default: '3.9.9'
23+
without-EF-infra:
24+
description: 'Weather to run this build without the need for EF-infrastructure (which is currently unavailable).'
25+
type: boolean
26+
required: false
27+
default: false
2328

2429
permissions: {}
2530

@@ -64,6 +69,29 @@ jobs:
6469
JavaSE-21
6570
distribution: 'temurin'
6671
cache: maven
72+
73+
- name: Checkout eclipse.platform.releng.aggregator
74+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
75+
if : inputs.without-EF-infra
76+
with:
77+
repository: eclipse-platform/eclipse.platform.releng.aggregator
78+
path: eclipse.platform.releng.aggregator
79+
sparse-checkout: |
80+
eclipse-platform-parent
81+
eclipse.platform.releng.prereqs.sdk
82+
- name: Install eclipse-parent poms
83+
if : inputs.without-EF-infra
84+
working-directory: eclipse.platform.releng.aggregator
85+
run: |
86+
cd eclipse-platform-parent
87+
mvn clean install -B -ntp '-Dtycho.version=4.0.12'
88+
cd ..
89+
cd eclipse.platform.releng.prereqs.sdk
90+
mvn clean install -B -ntp '-Dtycho.version=4.0.12'
91+
- name: Remove eclipse.platform.releng.aggregator
92+
if : inputs.without-EF-infra
93+
run: ${{ matrix.config.name == 'Windows' && 'rmdir -r -Force' || 'rm -rf' }} eclipse.platform.releng.aggregator
94+
6795
- name: Set up Maven
6896
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
6997
with:
@@ -80,6 +108,7 @@ jobs:
80108
with:
81109
run: >-
82110
mvn --batch-mode -V -U -e
111+
${{ inputs.without-EF-infra && '-Dtycho.version=4.0.12' || '' }}
83112
-ntp
84113
-Dcompare-version-with-baselines.skip=false
85114
-Pbree-libs

0 commit comments

Comments
 (0)