-
-
Notifications
You must be signed in to change notification settings - Fork 4
336 lines (316 loc) · 13 KB
/
Copy pathdotnet.yml
File metadata and controls
336 lines (316 loc) · 13 KB
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
# This workflow builds the binaries for Pidgeon Render Farm
name: Build PRF Binaries
on:
#label:
# types:
# - created
workflow_dispatch:
inputs:
Windows:
type: boolean
description: 'Build Windows x64'
required: true
default: true
Windows_ARM:
type: boolean
description: 'Build Windows ARM'
required: true
default: false
Linux:
type: boolean
description: 'Build Linux x64'
required: true
default: true
Linux_ARM:
type: boolean
description: 'Build Linux ARM'
required: true
default: false
Mac:
type: boolean
description: 'Build MacOS x64'
required: true
default: false
Mac_ARM:
type: boolean
description: 'Build MacOS ARM'
required: true
default: false
jobs:
Build:
# use Ubuntu as OS
name: Build PRF Binaries
runs-on: ubuntu-latest
steps:
# Using dotnet 6
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
# Build Windows x64 Client
- name: Build Windows x64 - Client
if: inputs.Windows
run: dotnet publish ./Client/Client.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime win-x64
- name: Move Windows bins - Client
if: inputs.Windows
run: mv ./Client/bin/Release/net6.0/win-x64/publish ./PRF_Client_Windows
- name: Copy LICENSE to Windows - Client
if: inputs.Windows
run: cp LICENSE ./PRF_Client_Windows
- name: Copy Get_Engines to Windows - Client
if: inputs.Windows
run: cp ./Client/Get_Engines.py ./PRF_Client_Windows
- name: Copy SID_Temporal_Bridge to Windows - Client
if: inputs.Windows
run: cp ./Client/SID_Temporal_Bridge.py ./PRF_Client_Windows
- name: Compress Windows - Client
if: inputs.Windows
run: zip -r PRF_Client_Windows.zip PRF_Client_Windows
# Build Windows ARM Client
- name: Build Windows ARM - Client
if: inputs.Windows_ARM
run: dotnet publish ./Client/Client.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime win-arm
- name: Move Windows ARM bins - Client
if: inputs.Windows_ARM
run: mv ./Client/bin/Release/net6.0/win-arm/publish ./PRF_Client_Windows_ARM
- name: Copy LICENSE to Windows ARM - Client
if: inputs.Windows_ARM
run: cp LICENSE ./PRF_Client_Windows_ARM
- name: Copy Get_Engines to Windows ARM - Client
if: inputs.Windows_ARM
run: cp ./Client/Get_Engines.py ./PRF_Client_Windows_ARM
- name: Copy SID_Temporal_Bridge to Windows ARM - Client
if: inputs.Windows_ARM
run: cp ./Client/SID_Temporal_Bridge.py ./PRF_Client_Windows_ARM
- name: Compress Windows ARM - Client
if: inputs.Windows_ARM
run: zip -r PRF_Client_Windows_ARM.zip PRF_Client_Windows_ARM
# Build Linux x64 client
- name: Build Linux x64 - Client
if: inputs.Linux
run: dotnet publish ./Client/Client.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime linux-x64
- name: Move Linux bins - Client
if: inputs.Linux
run: mv ./Client/bin/Release/net6.0/linux-x64/publish ./PRF_Client_Linux
- name: Copy LICENSE to Linux - Client
if: inputs.Linux
run: cp LICENSE ./PRF_Client_Linux
- name: Copy Get_Engines to Linux - Client
if: inputs.Linux
run: cp ./Client/Get_Engines.py ./PRF_Client_Linux
- name: Copy SID_Temporal_Bridge to Linux - Client
if: inputs.Linux
run: cp ./Client/SID_Temporal_Bridge.py ./PRF_Client_Linux
- name: Compress Linux - Client
if: inputs.Linux
run: zip -r PRF_Client_Linux.zip PRF_Client_Linux
# Build Linux ARM Client
- name: Build Linux ARM - Client
if: inputs.Linux_ARM
run: dotnet publish ./Client/Client.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime linux-arm
- name: Move Linux ARM bins - Client
if: inputs.Linux_ARM
run: mv ./Client/bin/Release/net6.0/linux-arm/publish ./PRF_Client_Linux_ARM
- name: Copy LICENSE to Linux ARM - Client
if: inputs.Linux_ARM
run: cp LICENSE ./PRF_Client_Linux_ARM
- name: Copy Get_Engines to Linux ARM - Client
if: inputs.Linux_ARM
run: cp ./Client/Get_Engines.py ./PRF_Client_Linux_ARM
- name: Copy SID_Temporal_Bridge to Linux ARM - Client
if: inputs.Linux_ARM
run: cp ./Client/SID_Temporal_Bridge.py ./PRF_Client_Linux_ARM
- name: Compress Linux ARM - Client
if: inputs.Linux_ARM
run: zip -r PRF_Client_Linux_ARM.zip PRF_Client_Linux_ARM
# Build Mac x64 Client
- name: Build Mac x64 - Client
if: inputs.Mac
run: dotnet publish ./Client/Client.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime osx-x64
- name: Move Mac bins - Client
if: inputs.Mac
run: mv ./Client/bin/Release/net6.0/osx-x64/publish ./PRF_Client_Mac
- name: Copy LICENSE to Mac - Client
if: inputs.Mac
run: cp LICENSE ./PRF_Client_Mac
- name: Copy Get_Engines to Mac - Client
if: inputs.Mac
run: cp ./Client/Get_Engines.py ./PRF_Client_Mac
- name: Copy SID_Temporal_Bridge to Mac - Client
if: inputs.Mac
run: cp ./Client/SID_Temporal_Bridge.py ./PRF_Client_Mac
- name: Compress Mac - Client
if: inputs.Mac
run: zip -r PRF_Client_Mac.zip PRF_Client_Mac
# Build Mac ARM Client
- name: Build Mac ARM - Client
if: inputs.Mac_ARM
run: dotnet publish ./Client/Client.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime osx-arm64
- name: Move Mac ARM bins - Client
if: inputs.Mac_AMR
run: mv ./Client/bin/Release/net6.0/osx-arm64/publish ./PRF_Client_Mac_ARM
- name: Copy LICENSE to Mac ARM - Client
if: inputs.Mac_ARM
run: cp LICENSE ./PRF_Client_Mac_ARM
- name: Copy Get_Engines to Mac ARM - Client
if: inputs.Mac_ARM
run: cp ./Client/Get_Engines.py ./PRF_Client_Mac_ARM
- name: Copy SID_Temporal_Bridge to Mac ARM - Client
if: inputs.Mac_ARM
run: cp ./Client/SID_Temporal_Bridge.py ./PRF_Client_Mac_ARM
- name: Compress Mac ARM - Client
if: inputs.Mac_ARM
run: zip -r PRF_Client_Mac_ARM.zip PRF_Client_Mac_ARM
# Build Master
# Build Windows x64 Master
- name: Build Windows x64 - Master
if: inputs.Windows
run: dotnet publish ./Master/Master.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime win-x64
- name: Move Windows bins - Master
if: inputs.Windows
run: mv ./Master/bin/Release/net6.0/win-x64/publish ./PRF_Master_Windows
- name: Copy LICENSE to Windows - Master
if: inputs.Windows
run: cp LICENSE ./PRF_Master_Windows
- name: Copy BPY to Windows - Master
if: inputs.Windows
run: cp ./Master/BPY.py ./PRF_Master_Windows
- name: Copy SID_Temporal_Bridge to Windows - Master
if: inputs.Windows
run: cp ./Master/SID_Temporal_Bridge.py ./PRF_Master_Windows
- name: Copy Get_Version to Windows - Master
if: inputs.Windows
run: cp ./Master/Get_Version.py ./PRF_Master_Windows
- name: Compress Windows - Master
if: inputs.Windows
run: zip -r PRF_Master_Windows.zip PRF_Master_Windows
# Build Windows ARM Master
- name: Build Windows ARM - Master
if: inputs.Windows_ARM
run: dotnet publish ./Master/Master.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime win-arm
- name: Move Windows ARM bins - Master
if: inputs.Windows_ARM
run: mv ./Master/bin/Release/net6.0/win-arm/publish ./PRF_Master_Windows_ARM
- name: Copy LICENSE to Windows ARM - Master
if: inputs.Windows_ARM
run: cp LICENSE ./PRF_Master_Windows_ARM
- name: Copy BPY to Windows ARM - Master
if: inputs.Windows_ARM
run: cp ./Master/BPY.py ./PRF_Master_Windows_ARM
- name: Copy SID_Temporal_Bridge to Windows ARM - Master
if: inputs.Windows_ARM
run: cp ./Master/SID_Temporal_Bridge.py ./PRF_Master_Windows_ARM
- name: Copy Get_Version to Windows ARM - Master
if: inputs.Windows_ARM
run: cp ./Master/Get_Version.py ./PRF_Master_Windows_ARM
- name: Compress Windows ARM - Master
if: inputs.Windows_ARM
run: zip -r PRF_Master_Windows_ARM.zip PRF_Master_Windows_ARM
# Build Linux x64 Master
- name: Build Linux x64 - Master
if: inputs.Linux
run: dotnet publish ./Master/Master.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime linux-x64
- name: Move Linux bins - Master
if: inputs.Linux
run: mv ./Master/bin/Release/net6.0/linux-x64/publish ./PRF_Master_Linux
- name: Copy LICENSE to Linux - Master
if: inputs.Linux
run: cp LICENSE ./PRF_Master_Linux
- name: Copy BPY to Linux - Master
if: inputs.Linux
run: cp ./Master/BPY.py ./PRF_Master_Linux
- name: Copy SID_Temporal_Bridge to Linux - Master
if: inputs.Linux
run: cp ./Master/SID_Temporal_Bridge.py ./PRF_Master_Linux
- name: Copy Get_Version to Linux - Master
if: inputs.Linux
run: cp ./Master/Get_Version.py ./PRF_Master_Linux
- name: Compress Linux - Master
if: inputs.Linux
run: zip -r PRF_Master_Linux.zip PRF_Master_Linux
# Build Linux ARM Master
- name: Build Linux ARM - Master
if: inputs.Linux_ARM
run: dotnet publish ./Master/Master.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime linux-arm
- name: Move Linux ARM bins - Master
if: inputs.Linux_ARM
run: mv ./Master/bin/Release/net6.0/linux-arm/publish ./PRF_Master_Linux_ARM
- name: Copy LICENSE to Linux ARM - Master
if: inputs.Linux_ARM
run: cp LICENSE ./PRF_Master_Linux_ARM
- name: Copy BPY to Linux ARM - Master
if: inputs.Linux_ARM
run: cp ./Master/BPY.py ./PRF_Master_Linux_ARM
- name: Copy SID_Temporal_Bridge to Linux ARM - Master
if: inputs.Linux_ARM
run: cp ./Master/SID_Temporal_Bridge.py ./PRF_Master_Linux_ARM
- name: Copy Get_Version to Linux ARM - Master
if: inputs.Linux_ARM
run: cp ./Master/Get_Version.py ./PRF_Master_Linux_ARM
- name: Compress Linux ARM - Master
if: inputs.Linux_ARM
run: zip -r PRF_Master_Linux_ARM.zip PRF_Master_Linux_ARM
# Build Mac x64 Master
- name: Build Mac x64 - Master
if: inputs.Mac
run: dotnet publish ./Master/Master.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime osx-x64
- name: Move Mac bins - Master
if: inputs.Mac
run: mv ./Master/bin/Release/net6.0/osx-x64/publish ./PRF_Master_Mac
- name: Copy LICENSE to Mac - Master
if: inputs.Mac
run: cp LICENSE ./PRF_Master_Mac
- name: Copy BPY to Mac - Master
if: inputs.Mac
run: cp ./Master/BPY.py ./PRF_Master_Mac
- name: Copy SID_Temporal_Bridge to Mac - Master
if: inputs.Mac
run: cp ./Master/SID_Temporal_Bridge.py ./PRF_Master_Mac
- name: Copy Get_Version to Mac - Master
if: inputs.Mac
run: cp ./Master/Get_Version.py ./PRF_Master_Mac
- name: Compress Mac - Master
if: inputs.Mac
run: zip -r PRF_Master_Mac.zip PRF_Master_Mac
# Build Mac ARM Master
- name: Build Mac ARM - Master
if: inputs.Mac_ARM
run: dotnet publish ./Master/Master.csproj --configuration Release --self-contained true -p:PublishSingleFile=true --runtime osx-arm64
- name: Move Mac ARM bins - Master
if: inputs.Mac_ARM
run: mv ./Master/bin/Release/net6.0/osx-arm64/publish ./PRF_Master_Mac_ARM
- name: Copy LICENSE to Mac ARM - Master
if: inputs.Mac_ARM
run: cp LICENSE ./PRF_Master_Mac_ARM
- name: Copy BPY to Mac ARM - Master
if: inputs.Mac_ARM
run: cp ./Master/BPY.py ./PRF_Master_Mac_ARM
- name: Copy SID_Temporal_Bridge to Mac ARM - Master
if: inputs.Mac_ARM
run: cp ./Master/SID_Temporal_Bridge.py ./PRF_Master_Mac_ARM
- name: Copy Get_Version to Mac ARM - Master
if: inputs.Mac_ARM
run: cp ./Master/Get_Version.py ./PRF_Master_Mac_ARM
- name: Compress Mac ARM - Master
if: inputs.Mac_ARM
run: zip -r PRF_Master_Mac_ARM.zip PRF_Master_Mac_ARM
# Add binaries to a draft release
# If a binary/zip file is not found it is not included
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
PRF_Client_Windows.zip
PRF_Client_Windows_ARM.zip
PRF_Client_Linux.zip
PRF_Client_Linux_ARM.zip
PRF_Client_Mac.zip
PRF_Client_Mac_ARM.zip
PRF_Master_Windows.zip
PRF_Master_Windows_ARM.zip
PRF_Master_Linux.zip
PRF_Master_Linux_ARM.zip
PRF_Master_Mac.zip
PRF_Master_Mac_ARM.zip
draft: true