-
Notifications
You must be signed in to change notification settings - Fork 40
380 lines (379 loc) · 12.2 KB
/
build-release.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
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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
name: Build OpenSupaplex Release
on:
workflow_call:
inputs:
version:
required: true
type: string
prerelease:
required: true
default: false
type: boolean
release_notes:
required: false
type: string
jobs:
build-linux:
name: Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build OpenSupaplex
run: |
./linux/ci-prepare.sh
./linux/ci-build.sh
shell: bash
build-macos:
name: macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Build OpenSupaplex
run: |
./macos/ci-prepare.sh
./macos/ci-build.sh
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macos-build
path: macos/OpenSupaplex-macOS.zip
build-vita:
name: PS Vita
runs-on: ubuntu-22.04
container: sergiou87/vita-docker-open-supaplex:7.2
steps:
- uses: actions/checkout@v1
- name: Build OpenSupaplex
run: |
./vita/ci-build-vita.sh
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: vita-build
path: vita/build/OpenSupaplex.vpk
build-switch:
name: Nintendo Switch
runs-on: ubuntu-latest
container: sergiou87/switch-docker-open-supaplex:7.1
steps:
- uses: actions/checkout@v1
- name: Build OpenSupaplex
run: |
./switch/ci-build-switch.sh
shell: bash
- name: Upload artifact
uses: actions/upload1
with:
name: switch-build
path: switch/OpenSupaplex-switch.zip
build-psp:
name: PSP
runs-on: ubuntu-22.04
container: sergiou87/pspdev-docker-open-supaplex:7.1
steps:
- uses: actions/checkout@v1
- name: Build OpenSupaplex
run: |
./psp/ci-install-dependencies.sh
./psp/ci-build.sh
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: psp-build
path: psp/OpenSupaplex-psp.zip
build-ps3:
name: PS3
runs-on: ubuntu-22.04
container: sergiou87/ps3dev-docker-open-supaplex:7.2
steps:
- uses: actions/checkout@v1
- name: Build OpenSupaplex
run: |
./ps3/ci-build.sh
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: ps3-build
path: ps3/OpenSupaplex.pkg
build-wii:
name: Wii
runs-on: ubuntu-22.04
container: sergiou87/wii-docker-open-supaplex:7.2
steps:
- uses: actions/checkout@v1
- name: Build OpenSupaplex
run: |
./wii/ci-build.sh
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: wii-build
path: wii/OpenSupaplex-wii.zip
build-wiiu:
name: Wii U
runs-on: ubuntu-22.04
container: sergiou87/wiiu-docker-open-supaplex:7.2
steps:
- uses: actions/checkout@v1
- name: Build OpenSupaplex
run: |
./wiiu/ci-build.sh
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: wiiu-build
path: wiiu/OpenSupaplex-wiiu.zip
build-nds:
name: Nintendo DS
runs-on: ubuntu-22.04
container: sergiou87/nds-docker-open-supaplex:7.2
steps:
- uses: actions/checkout@v1
- name: Build OpenSupaplex
run: |
./nds/ci-build-nds.sh
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: nds-build
path: nds/OpenSupaplex.nds
build-3ds:
name: Nintendo 3DS
runs-on: ubuntu-22.04
container: sergiou87/3ds-docker-open-supaplex:7.1
steps:
- uses: actions/checkout@v1
- name: Build OpenSupaplex
run: |
./3ds/ci-build-3ds.sh
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: 3ds-build
path: 3ds/OpenSupaplex-3ds.zip
build-riscos:
name: RISC OS
runs-on: ubuntu-22.04
container: sergiou87/riscos-docker-open-supaplex:7.2
steps:
- uses: actions/checkout@v1
- name: Build OpenSupaplex
run: |
./riscos/ci-build.sh
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: riscos-build
path: riscos/OpenSupaplex-riscos.zip
build-windows-x86_64:
name: Windows x86_64
runs-on: windows-latest
steps:
- uses: msys2/setup-msys2@v2
- run: git config --global core.autocrlf false
- uses: actions/checkout@v1
- name: Prepare build environment
run: |
msys2 -c './windows/ci-prepare.sh x86_64'
- name: Build OpenSupaplex
run: |
cd windows
msys2 -c './ci-build.sh x86_64'
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: windows-x86_64-build
path: windows/OpenSupaplex-windows-x86_64.zip
create-release:
name: Create release
needs:
[
build-vita,
build-macos,
build-switch,
build-nds,
build-3ds,
build-riscos,
build-windows-x86_64,
build-psp,
build-ps3,
build-wii,
build-wiiu,
]
runs-on: ubuntu-latest
steps:
- name: Checking out...
uses: actions/checkout@v1
- name: Read release notes
id: read_release_notes
run: |
CONTENTS=`cat changelog/${{ inputs.version }}.txt`
CONTENTS="${CONTENTS//'%'/'%25'}"
CONTENTS="${CONTENTS//$'\n'/'%0A'}"
CONTENTS="${CONTENTS//$'\r'/'%0D'}"
echo "::set-output name=release_notes::${CONTENTS}"
shell: bash
if: ${{ !inputs.release_notes }}
- name: Download macOS Build Asset
uses: actions/download-artifact@v4
with:
name: macos-build
- name: Download PS Vita Build Asset
uses: actions/download-artifact@v4
with:
name: vita-build
- name: Download Nintendo Switch Build Asset
uses: actions/download-artifact@v4
with:
name: switch-build
- name: Download PSP Build Asset
uses: actions/download-artifact@v4
with:
name: psp-build
- name: Download PS3 Build Asset
uses: actions/download-artifact@v4
with:
name: ps3-build
- name: Download Wii Build Asset
uses: actions/download-artifact@v4
with:
name: wii-build
- name: Download Wii U Build Asset
uses: actions/download-artifact@v4
with:
name: wiiu-build
- name: Download Nintendo DS Build Asset
uses: actions/download-artifact@v4
with:
name: nds-build
- name: Download Nintendo 3DS Build Asset
uses: actions/download-artifact@v4
with:
name: 3ds-build
- name: Download RISC OS Build Asset
uses: actions/download-artifact@v4
with:
name: riscos-build
- name: Download Windows x86_64 Build Asset
uses: actions/download-artifact@v4
with:
name: windows-x86_64-build
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ inputs.version }}
release_name: OpenSupaplex ${{ inputs.version }}
body: ${{ inputs.release_notes || steps.read_release_notes.outputs.release_notes }}
draft: false
prerelease: ${{ inputs.prerelease }}
- name: Upload macOS Build Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: macos-build/OpenSupaplex-macOS.zip
asset_name: OpenSupaplex-macOS-${{ inputs.version }}.zip
asset_content_type: application/binary
- name: Upload PS Vita Build Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: vita-build/OpenSupaplex.vpk
asset_name: OpenSupaplex-vita-${{ inputs.version }}.vpk
asset_content_type: application/binary
- name: Upload Nintendo Switch Build Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: switch-build/OpenSupaplex-switch.zip
asset_name: OpenSupaplex-switch-${{ inputs.version }}.zip
asset_content_type: application/zip
- name: Upload PSP Build Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: psp-build/OpenSupaplex-psp.zip
asset_name: OpenSupaplex-psp-${{ inputs.version }}.zip
asset_content_type: application/zip
- name: Upload PS3 Build Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ps3-build/OpenSupaplex.pkg
asset_name: OpenSupaplex-ps3-${{ inputs.version }}.pkg
asset_content_type: application/binary
- name: Upload Wii Build Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: wii-build/OpenSupaplex-wii.zip
asset_name: OpenSupaplex-wii-${{ inputs.version }}.zip
asset_content_type: application/zip
- name: Upload Wii U Build Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: wiiu-build/OpenSupaplex-wiiu.zip
asset_name: OpenSupaplex-wiiu-${{ inputs.version }}.zip
asset_content_type: application/zip
- name: Upload Nintendo DS Build Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: nds-build/OpenSupaplex.nds
asset_name: OpenSupaplex-nds-${{ inputs.version }}.nds
asset_content_type: application/binary
- name: Upload Nintendo 3DS Build Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: 3ds-build/OpenSupaplex-3ds.zip
asset_name: OpenSupaplex-3ds-${{ inputs.version }}.zip
asset_content_type: application/zip
- name: Upload RISC OS Build Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: riscos-build/OpenSupaplex-riscos.zip
asset_name: OpenSupaplex-riscos-${{ inputs.version }}.zip
asset_content_type: application/zip
- name: Upload Windows x86_64 Build Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: windows-x86_64-build/OpenSupaplex-windows-x86_64.zip
asset_name: OpenSupaplex-windows-x86_64-${{ inputs.version }}.zip
asset_content_type: application/zip