-
Notifications
You must be signed in to change notification settings - Fork 364
309 lines (261 loc) · 9.07 KB
/
nightly-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
name: "nightly-release"
on:
push:
branches:
- "master"
jobs:
nightly_release:
name: Create release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.nightly_release.outputs.upload_url }}
steps:
- name: Create release
id: nightly_release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "nightly builds"
build_windows:
name: Windows x32
needs: nightly_release
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Install Windows MSYS2 dependencies
uses: msys2/setup-msys2@v2
with:
update: true
install: msys2-devel base-devel binutils mingw-w64-i686-toolchain mingw-w64-i686-nasm zip wget
msystem: MINGW32
- name: Downgrade pthread
run: |
wget https://github.com/barbudreadmon/msys2-package-archives/raw/main/mingw-w64-i686-libwinpthread-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz
wget https://github.com/barbudreadmon/msys2-package-archives/raw/main/mingw-w64-i686-winpthreads-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz
pacman -U --noconfirm mingw-w64-i686-winpthreads-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz mingw-w64-i686-libwinpthread-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz
- uses: actions/checkout@v2
- name: Build FBNeo
run: |
make -j$(nproc) mingw SKIPDEPEND=1 RELEASEBUILD=1
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Windows x32
path: |
fbneo.exe
- name: Build release asset
run: |
zip --junk-paths "Windows x32.zip" fbneo.exe src/license.txt fbahelpfilesrc/fbneo.chm whatsnew.html
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.nightly_release.outputs.upload_url }}
asset_name: Windows x32.zip
asset_path: Windows x32.zip
asset_content_type: application/zip
build_windows_debug:
name: Windows x32 (Debug)
needs: nightly_release
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Install Windows MSYS2 dependencies
uses: msys2/setup-msys2@v2
with:
update: true
install: msys2-devel base-devel binutils mingw-w64-i686-toolchain mingw-w64-i686-nasm zip wget
msystem: MINGW32
- name: Downgrade pthread
run: |
wget https://github.com/barbudreadmon/msys2-package-archives/raw/main/mingw-w64-i686-libwinpthread-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz
wget https://github.com/barbudreadmon/msys2-package-archives/raw/main/mingw-w64-i686-winpthreads-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz
pacman -U --noconfirm mingw-w64-i686-winpthreads-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz mingw-w64-i686-libwinpthread-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz
- uses: actions/checkout@v2
- name: Build FBNeo
run: |
make -j$(nproc) mingw SKIPDEPEND=1
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Windows x32 (Debug)
path: |
fbneod.exe
- name: Build release asset
run: |
zip --junk-paths "Windows x32 (Debug).zip" fbneod.exe src/license.txt fbahelpfilesrc/fbneo.chm whatsnew.html
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.nightly_release.outputs.upload_url }}
asset_name: Windows x32 (Debug).zip
asset_path: Windows x32 (Debug).zip
asset_content_type: application/zip
build_windows64:
name: Windows x64
needs: nightly_release
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Install Windows MSYS2 dependencies
uses: msys2/setup-msys2@v2
with:
update: true
install: msys2-devel base-devel binutils mingw-w64-x86_64-toolchain mingw-w64-x86_64-nasm zip wget
msystem: MINGW64
- uses: actions/checkout@v2
- name: Build FBNeo
run: |
make -j$(nproc) mingw BUILD_X64_EXE=1 SKIPDEPEND=1 RELEASEBUILD=1
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Windows x64
path: |
fbneo64.exe
- name: Build release asset
run: |
zip --junk-paths "Windows x64.zip" fbneo64.exe src/license.txt fbahelpfilesrc/fbneo.chm whatsnew.html
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.nightly_release.outputs.upload_url }}
asset_name: Windows x64.zip
asset_path: Windows x64.zip
asset_content_type: application/zip
build_windows64_debug:
name: Windows x64 (Debug)
needs: nightly_release
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Install Windows MSYS2 dependencies
uses: msys2/setup-msys2@v2
with:
update: true
install: msys2-devel base-devel binutils mingw-w64-x86_64-toolchain mingw-w64-x86_64-nasm zip wget
msystem: MINGW64
- uses: actions/checkout@v2
- name: Build FBNeo
run: |
make -j$(nproc) mingw BUILD_X64_EXE=1 SKIPDEPEND=1
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Windows x64 (Debug)
path: |
fbneo64d.exe
- name: Build release asset
run: |
zip --junk-paths "Windows x64 (Debug).zip" fbneo64d.exe src/license.txt fbahelpfilesrc/fbneo.chm whatsnew.html
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.nightly_release.outputs.upload_url }}
asset_name: Windows x64 (Debug).zip
asset_path: Windows x64 (Debug).zip
asset_content_type: application/zip
build_linux_sdl2:
name: Linux SDL 2
needs: nightly_release
runs-on: ubuntu-20.04
defaults:
run:
shell: bash {0}
steps:
- name: Install Linux dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install libsdl2-dev libsdl2-image-dev
- uses: actions/checkout@v2
- name: Build FBNeo
run: |
make -j$(nproc) sdl2 SKIPDEPEND=1 RELEASEBUILD=1
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Linux SDL 2
path: |
fbneo
- name: Build release asset
run: |
zip --junk-paths "Linux SDL 2.zip" fbneo src/license.txt fbahelpfilesrc/fbneo.chm whatsnew.html
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.nightly_release.outputs.upload_url }}
asset_name: Linux SDL 2.zip
asset_path: Linux SDL 2.zip
asset_content_type: application/zip
build_linux_sdl12:
name: Linux SDL 1.2
needs: nightly_release
runs-on: ubuntu-20.04
defaults:
run:
shell: bash {0}
steps:
- name: Install Linux dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install libsdl1.2-dev
- uses: actions/checkout@v2
- name: Build FBNeo
run: |
make -j$(nproc) sdl SKIPDEPEND=1 RELEASEBUILD=1
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Linux SDL 1.2
path: |
fbneo
- name: Build release asset
run: |
zip --junk-paths "Linux SDL 1.2.zip" fbneo src/license.txt fbahelpfilesrc/fbneo.chm whatsnew.html
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.nightly_release.outputs.upload_url }}
asset_name: Linux SDL 1.2.zip
asset_path: Linux SDL 1.2.zip
asset_content_type: application/zip
# build_macos:
# name: macOS
# needs: nightly_release
# runs-on: macOS-latest
# env:
# DEVELOPER_DIR: /Applications/Xcode.app
# steps:
# - uses: actions/checkout@v2
#
# - name: Build FBNeo
# run: |
# cd projectfiles/xcode
# xcodebuild ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -target Emulator -configuration Debug
#
# - name: Upload Artifact
# uses: actions/upload-artifact@v2
# with:
# name: macOS
# path: "projectfiles/xcode/build/Debug/FinalBurn Neo.app"