-
Notifications
You must be signed in to change notification settings - Fork 67
210 lines (208 loc) · 5.97 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
name: Build Equinox
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # required for jgit timestamp provider to work
- name: checkout equinox.binaries
uses: actions/checkout@v4
with:
fetch-depth: 1 # only shallow here, we don't have jgit timestamps
repository: eclipse-equinox/equinox.binaries
path: rt.equinox.binaries
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.2
- name: Build with Maven
uses: GabrielBB/xvfb-action@v1
with:
run: >-
mvn
--batch-mode
--global-toolchains ${{ github.workspace }}/.github/workflows/toolchains.xml
-Pbree-libs
-Papi-check
-Dcompare-version-with-baselines.skip=false
-Dproject.build.sourceEncoding=UTF-8
-Dmaven.test.failure.ignore=true
-Drt.equinox.binaries.loc=${{ github.workspace }}/rt.equinox.binaries
clean verify
- name: Upload Test Results
uses: actions/upload-artifact@v4
with:
name: test-results
if-no-files-found: error
path: '**/target/*-reports/*.xml'
build-launcher-win64:
runs-on: windows-2019
env:
PROGRAM_OUTPUT: eclipse.exe
PROGRAM_LIBRARY: eclipse.dll
DEFAULT_OS: win32
DEFAULT_OS_ARCH: x86_64
DEFAULT_WS: win32
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.2
- name: Visual Studio shell
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- name: Build
working-directory: features/org.eclipse.equinox.executable.feature/library/win32
run: nmake -f make_win64.mak test
shell: pwsh
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: success()
with:
name: Windows launcher artifacts
path: |
features/org.eclipse.equinox.executable.feature/library/win32/eclipse*.exe
features/org.eclipse.equinox.executable.feature/library/win32/eclipse*.dll
if-no-files-found: error
- name: Upload Windows Test Results
uses: actions/upload-artifact@v4
with:
name: test-results-win64
if-no-files-found: error
path: '**/target/*-reports/*.xml'
build-launcher-linux64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.2
- name: Install GTK headers
run: sudo apt-get install -y libgtk-3-dev
- name: Build
working-directory: features/org.eclipse.equinox.executable.feature/library/gtk
run: ./build.sh test
shell: bash
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: success()
with:
name: Linux launcher artifacts
path: |
features/org.eclipse.equinox.executable.feature/library/gtk/eclipse
features/org.eclipse.equinox.executable.feature/library/gtk/eclipse*.so
if-no-files-found: error
- name: Upload Linux Test Results
uses: actions/upload-artifact@v4
with:
name: test-results-linux64
if-no-files-found: error
path: '**/target/*-reports/*.xml'
build-launcher-mac64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.2
- name: Build
working-directory: features/org.eclipse.equinox.executable.feature/library/cocoa
run: ./build.sh
shell: bash
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: success()
with:
name: MacOS launcher artifacts
path: |
features/org.eclipse.equinox.executable.feature/library/cocoa/eclipse
features/org.eclipse.equinox.executable.feature/library/cocoa/eclipse*.so
if-no-files-found: error
tck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.2
- name: Run OSGi TCKs
run: >-
mvn
-U
--batch-mode
--global-toolchains ${{ github.workspace }}/.github/workflows/toolchains.xml
--threads 1C
-Pbuild-individual-bundles
-Pbree-libs
-Ptck
-Dskip-default-modules=true
-Dproject.build.sourceEncoding=UTF-8
-Dtycho.resolver.classic=false
-fn
clean verify
- name: Upload TCK Results
uses: actions/upload-artifact@v4
if: always()
with:
name: tck-results
if-no-files-found: error
path: '**/target/tck-results/TEST-*.xml'
event_file:
name: "Upload Event File"
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Event File
path: ${{ github.event_path }}