File tree Expand file tree Collapse file tree 4 files changed +70
-2
lines changed
actions/install-maven-parent-action Expand file tree Collapse file tree 4 files changed +70
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Install Maven parent and SDK target'
2
+ description : ' Install the eclipse-parent pom.xml and Eclipse SDK target-platform into the local Maven cache in order to avoid the need for EF-infrastructure (which is currently unavailable).'
3
+ inputs :
4
+ tycho-version :
5
+ description : ' The tycho release to use.'
6
+ required : true
7
+ runs :
8
+ using : " composite"
9
+ steps :
10
+ - name : Checkout eclipse.platform.releng.aggregator
11
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12
+ with :
13
+ repository : eclipse-platform/eclipse.platform.releng.aggregator
14
+ path : eclipse.platform.releng.aggregator
15
+ sparse-checkout : |
16
+ eclipse-platform-parent
17
+ eclipse.platform.releng.prereqs.sdk
18
+ - name : Install eclipse-parent poms
19
+ working-directory : eclipse.platform.releng.aggregator
20
+ shell : bash
21
+ run : |
22
+ cd eclipse-platform-parent
23
+ mvn clean install -B -ntp -Dtycho.version=${{ inputs.tycho-version }}
24
+ cd ..
25
+ cd eclipse.platform.releng.prereqs.sdk
26
+ mvn clean install -B -ntp -Dtycho.version=${{ inputs.tycho-version }}
27
+ - name : Remove eclipse.platform.releng.aggregator
28
+ shell : bash
29
+ run : ' rm -rf eclipse.platform.releng.aggregator'
Original file line number Diff line number Diff line change 26
26
type : string
27
27
required : false
28
28
default : ' .'
29
+ without-EF-infra :
30
+ description : ' Whether to run this build without the need for EF-infrastructure (which is currently unavailable).'
31
+ type : boolean
32
+ required : false
33
+ default : true
29
34
30
35
permissions : {} # all none
31
36
51
56
with :
52
57
maven-version : 3.9.9
53
58
59
+ - name : Install Maven parent locally
60
+ uses : eclipse-platform/eclipse.platform.releng.aggregator/.github/actions/install-maven-parent-action@master
61
+ if : inputs.without-EF-infra
62
+ with :
63
+ tycho-version : 4.0.12
64
+
54
65
- name : Additional setup
55
66
if : inputs.extra-setup-command
56
67
run : |
66
77
mvn verify ${{ inputs.extra-maven-args }} -DskipTests -Dcompare-version-with-baselines.skip=false
67
78
org.eclipse.tycho:tycho-versions-plugin:bump-versions -Dtycho.bump-versions.increment=100
68
79
--threads 1C --fail-at-end --batch-mode --no-transfer-progress --show-version
80
+ ${{ inputs.without-EF-infra && '-Dtycho.version=4.0.12' || '' }}
69
81
70
82
- name : Commit version increments, if any
71
83
run : |
79
91
80
92
# Read 'releaseNumberSDK' property as stream version
81
93
pushd ${{ inputs.working-directory }}
82
- mvn help:evaluate -Dexpression=releaseNumberSDK ${{ inputs.extra-maven-args }} --quiet '-Doutput=releaseNumberSDK-value.txt'
94
+ mvn help:evaluate -Dexpression=releaseNumberSDK ${{ inputs.extra-maven-args }} --quiet '-Doutput=releaseNumberSDK-value.txt' \
95
+ ${{ inputs.without-EF-infra && '-Dtycho.version=4.0.12' || '' }}
83
96
streamVersion=$(<releaseNumberSDK-value.txt)
84
97
rm -f releaseNumberSDK-value.txt
85
98
popd
Original file line number Diff line number Diff line change 20
20
type : string
21
21
required : false
22
22
default : ' 3.9.9'
23
+ without-EF-infra :
24
+ description : ' Whether to run this build without the need for EF-infrastructure (which is currently unavailable).'
25
+ type : boolean
26
+ required : false
27
+ default : true
23
28
24
29
jobs :
25
30
analyze :
@@ -77,11 +82,19 @@ jobs:
77
82
uses : stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
78
83
with :
79
84
maven-version : ${{ inputs.mavenVersion }}
85
+
86
+ - name : Install Maven parent locally
87
+ uses : eclipse-platform/eclipse.platform.releng.aggregator/.github/actions/install-maven-parent-action@master
88
+ if : inputs.without-EF-infra
89
+ with :
90
+ tycho-version : 4.0.12
91
+
80
92
- name : Build with Maven
81
93
uses : coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
82
94
with :
83
95
run : >-
84
96
mvn --batch-mode -V -U
97
+ ${{ inputs.without-EF-infra && '-Dtycho.version=4.0.12' || '' }}
85
98
-ntp
86
99
-Dcompare-version-with-baselines.skip=true
87
100
-Pbree-libs
Original file line number Diff line number Diff line change 15
15
type : string
16
16
required : false
17
17
default : ' false'
18
- mavenVersion :
18
+ mavenVersion :
19
19
description : ' The version of Maven set up'
20
20
type : string
21
21
required : false
22
22
default : ' 3.9.9'
23
+ without-EF-infra :
24
+ description : ' Whether to run this build without the need for EF-infrastructure (which is currently unavailable).'
25
+ type : boolean
26
+ required : false
27
+ default : true
23
28
24
29
permissions : {}
25
30
68
73
uses : stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
69
74
with :
70
75
maven-version : ${{ inputs.mavenVersion }}
76
+
77
+ - name : Install Maven parent locally
78
+ uses : eclipse-platform/eclipse.platform.releng.aggregator/.github/actions/install-maven-parent-action@master
79
+ if : inputs.without-EF-infra
80
+ with :
81
+ tycho-version : 4.0.12
82
+
71
83
- name : Download the API Tools matcher
72
84
uses : suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9 # v1.6.0
73
85
id : api-tools-matcher
80
92
with :
81
93
run : >-
82
94
mvn --batch-mode -V -U -e
95
+ ${{ inputs.without-EF-infra && '-Dtycho.version=4.0.12' || '' }}
83
96
-ntp
84
97
-Dcompare-version-with-baselines.skip=false
85
98
-Pbree-libs
You can’t perform that action at this time.
0 commit comments