-
Notifications
You must be signed in to change notification settings - Fork 0
282 lines (281 loc) · 8.68 KB
/
build.yaml
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
# This file was generated using Kotlin DSL (.github/workflows/build.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt
name: 'Build'
on:
push: {}
pull_request: {}
jobs:
build:
name: 'Build on ${{ matrix.os }}'
runs-on: '${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
steps:
- id: 'step-0'
name: 'Verify No Unexpected Result Files'
shell: 'bash'
run: |-
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install --yes wine wine32 winetricks
wget https://files.jrsoftware.org/is/6/innosetup-6.3.3.exe
wine innosetup-6.3.3.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /LOG=is-install.log /CURRENTUSER
if: 'runner.os == ''Linux'''
- id: 'step-1'
uses: 'mxschmitt/action-tmate@v3'
if: 'always()'
- id: 'step-2'
name: 'Configure Git'
run: 'git config --global core.autocrlf input'
- id: 'step-3'
name: 'Checkout'
uses: 'actions/checkout@v4'
- id: 'step-4'
name: 'Setup Java 11'
uses: 'actions/setup-java@v4'
with:
java-version: '11'
distribution: 'temurin'
- id: 'step-5'
name: 'Configure Build Properties'
uses: 'DamianReeves/[email protected]'
with:
path: 'build.properties'
contents: 'innosetup.compiler.executable=C:/Program Files (x86)/Inno Setup 6/ISCC.exe'
if: 'runner.os == ''Windows'''
- id: 'step-6'
name: 'Build'
run: 'ant -keep-going dist'
- id: 'step-7'
name: 'Upload All Result Files'
uses: 'actions/upload-artifact@v4'
with:
name: 'All Artifacts'
path: |-
dist/jedit*manual-a4.pdf
dist/jedit*manual-letter.pdf
dist/jedit*source.tar.bz2
dist/jedit*install.jar
dist/jedit-*-noarch-1sao.tgz
dist/jedit_*_all.deb
dist/jedit*install.exe
dist/jedit*install.dmg
dist/jedit*-dist-mac-finish.tar.bz2
dist/Packages
dist/Packages.gz
dist/Packages.bz2
dist/Release
dist/Release.gpg
if-no-files-found: 'error'
compression-level: '0'
if: |2-
((always())
&& (steps.step-6.outcome == 'success'))
&& (runner.os == 'macOS')
- id: 'step-8'
name: 'Upload Manual in A4 Paper size'
uses: 'actions/upload-artifact@v4'
with:
name: 'Manual in A4 Paper size'
path: 'dist/jedit*manual-a4.pdf'
if-no-files-found: 'error'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-9'
name: 'Upload Manual in Letter Paper size'
uses: 'actions/upload-artifact@v4'
with:
name: 'Manual in Letter Paper size'
path: 'dist/jedit*manual-letter.pdf'
if-no-files-found: 'error'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-10'
name: 'Upload Source Package'
uses: 'actions/upload-artifact@v4'
with:
name: 'Source Package'
path: 'dist/jedit*source.tar.bz2'
if-no-files-found: 'error'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-11'
name: 'Upload Java based Installer'
uses: 'actions/upload-artifact@v4'
with:
name: 'Java based Installer'
path: 'dist/jedit*install.jar'
if-no-files-found: 'error'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-12'
name: 'Upload Slackware Installer'
uses: 'actions/upload-artifact@v4'
with:
name: 'Slackware Installer'
path: 'dist/jedit-*-noarch-1sao.tgz'
if-no-files-found: 'error'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-13'
name: 'Upload Debian Installer'
uses: 'actions/upload-artifact@v4'
with:
name: 'Debian Installer'
path: 'dist/jedit_*_all.deb'
if-no-files-found: 'error'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-14'
name: 'Upload Windows Installer'
uses: 'actions/upload-artifact@v4'
with:
name: 'Windows Installer'
path: 'dist/jedit*install.exe'
if-no-files-found: 'error'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-15'
name: 'Upload macOS Installer'
uses: 'actions/upload-artifact@v4'
with:
name: 'macOS Installer'
path: 'dist/jedit*install.dmg'
if-no-files-found: 'error'
compression-level: '0'
overwrite: 'true'
if: |-
((always())
&& (steps.step-6.outcome == 'success')) && (runner.os == 'macOS')
- id: 'step-16'
name: 'Upload macOS Intermediate Result'
uses: 'actions/upload-artifact@v4'
with:
name: 'macOS Intermediate Result'
path: 'dist/jedit*-dist-mac-finish.tar.bz2'
if-no-files-found: 'error'
compression-level: '0'
overwrite: 'true'
if: |-
((always())
&& (steps.step-6.outcome == 'success')) && (runner.os != 'macOS')
- id: 'step-17'
name: 'Upload Debian Repository Packages File'
uses: 'actions/upload-artifact@v4'
with:
name: 'Debian Repository Packages File'
path: 'dist/Packages'
if-no-files-found: 'ignore'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-18'
name: 'Upload Debian Repository Packages File (gz)'
uses: 'actions/upload-artifact@v4'
with:
name: 'Debian Repository Packages File (gz)'
path: 'dist/Packages.gz'
if-no-files-found: 'ignore'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-19'
name: 'Upload Debian Repository Packages File (bz2)'
uses: 'actions/upload-artifact@v4'
with:
name: 'Debian Repository Packages File (bz2)'
path: 'dist/Packages.bz2'
if-no-files-found: 'ignore'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-20'
name: 'Upload Debian Repository Release File'
uses: 'actions/upload-artifact@v4'
with:
name: 'Debian Repository Release File'
path: 'dist/Release'
if-no-files-found: 'ignore'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-21'
name: 'Upload Debian Repository Release File Signature'
uses: 'actions/upload-artifact@v4'
with:
name: 'Debian Repository Release File Signature'
path: 'dist/Release.gpg'
if-no-files-found: 'ignore'
compression-level: '0'
overwrite: 'true'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-22'
name: 'Upload All Unexpected Result Files'
uses: 'actions/upload-artifact@v4'
with:
name: 'Unexpected Artifacts (${{ runner.os }})'
path: |-
dist
!dist/jedit*manual-a4.pdf
!dist/jedit*manual-letter.pdf
!dist/jedit*source.tar.bz2
!dist/jedit*install.jar
!dist/jedit-*-noarch-1sao.tgz
!dist/jedit_*_all.deb
!dist/jedit*install.exe
!dist/jedit*install.dmg
!dist/jedit*-dist-mac-finish.tar.bz2
!dist/Packages
!dist/Packages.gz
!dist/Packages.bz2
!dist/Release
!dist/Release.gpg
if-no-files-found: 'ignore'
compression-level: '0'
if: |-
(always())
&& (steps.step-6.outcome == 'success')
- id: 'step-23'
name: 'Verify No Unexpected Result Files'
shell: 'bash'
run: '[ ''${{ steps.step-22.outputs.artifact-id }}'' == '''' ]'
if: |-
(always())
&& (steps.step-22.outcome == 'success')