-
Notifications
You must be signed in to change notification settings - Fork 7
376 lines (367 loc) · 16.7 KB
/
sp.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
name: Compile with SourceMod
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sm-version: [ '1.11.x' ]
# sm-version: [ '1.10.x', '1.10.6528', '1.11.x', '1.11.6467', '>= 1.11.6478']
include:
- sm-version: "1.11.x" # https://github.com/rumblefrog/setup-sp/issues/5
compiler-options: "-i=$includePath"
name: SM version ${{ matrix.sm-version }}
steps:
- uses: actions/checkout@v2
- name: Set environment variables
run: echo SCRIPTS_PATH=$(pwd) >> $GITHUB_ENV
- name: create folders
run: |
mkdir -p "./lib-include/stocksoup/tf/"
working-directory: ${{ env.SCRIPTS_PATH }}
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }}
id: Setup_SourcePawn
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.sm-version }}
version-file: ./berobot_handler.sp
define-name: PLUGIN_VERSION
- name: diag for Setup_SourcePawn
run: |
echo outputs = ${{ join(steps.Setup_SourcePawn.outputs.*, ', ') }}
echo version = ${{ steps.Setup_SourcePawn.outputs.version }}
echo plugin-version = ${{ steps.Setup_SourcePawn.outputs.plugin-version }}
working-directory: ${{ env.SCRIPTS_PATH }}
# Dependecies
# nosoop/SM-TFUtils
- name: Download nosoop/SM-TFUtils
uses: Legion2/[email protected]
with:
repository: nosoop/SM-TFUtils
tag: '1.3.1.1'
path: './lib-include'
file: tf2utils.inc
# nosoop/tf2attributes
- name: Download nosoop/tf2attributes
uses: Legion2/[email protected]
with:
repository: nosoop/tf2attributes
tag: '1.7.1.1'
path: './lib-include'
file: tf2attributes.inc
# nosoop/SM-TFCustAttr
- name: Download nosoop/SM-TFCustAttr
uses: Legion2/[email protected]
with:
repository: nosoop/SM-TFCustAttr
tag: 'workflow-build8'
path: './lib-zips'
file: package.zip
- name: Unzip nosoop/SM-TFCustAttr
uses: montudor/action-zip@v1
with:
args: unzip -qq lib-zips/package.zip -d lib-zips/SM-TFCustAttr-workflow-build8
- name: copy nosoop/SM-TFCustAttr
uses: canastro/copy-file-action@master
with:
source: "lib-zips/SM-TFCustAttr-workflow-build8/scripting/include/tf_custom_attributes.inc"
target: "./lib-include/tf_custom_attributes.inc"
# nosoop/SM-TFOnTakeDamage
- name: Download nosoop/SM-TFOnTakeDamage
uses: Legion2/[email protected]
with:
repository: nosoop/SM-TFOnTakeDamage
tag: '1.2.0'
path: './lib-include'
file: tf_ontakedamage.inc
# morecolors.inc
- name: Download morecolors.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/JoinedSenses/SourceMod-IncludeLibrary/master/include/morecolors.inc'
location: './lib-include'
# peace-maker/DHooks2
- name: Download peace-maker/DHooks2
uses: Legion2/[email protected]
with:
repository: peace-maker/DHooks2
tag: 'v2.2.0-detours17'
path: './lib-zips'
file: dhooks-2.2.0-detours17-sm110.zip
- name: Unzip peace-maker/DHooks2
uses: montudor/action-zip@v1
with:
args: unzip -qq lib-zips/dhooks-2.2.0-detours17-sm110.zip -d lib-zips/dhooks-2.2.0-detours17-sm110
- name: copy peace-maker/DHooks2
uses: canastro/copy-file-action@master
with:
source: "lib-zips/dhooks-2.2.0-detours17-sm110/addons/sourcemod/scripting/include/dhooks.inc"
target: "./lib-include/dhooks.inc"
- name: Download particle.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/GIider/Upgrademod/master/third_party/sourcemod/scripting/include/particle.inc'
location: './lib-include'
# sm_logger.inc
- name: Download sm_logger.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/raziEiL/SM-Logger/master/scripting/include/sm_logger.inc'
location: './lib-include'
# tf2_isPlayerInSpawn.inc
- name: Download tf2_isPlayerInSpawn.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'http://ddhoward.com/sourcemod/updater/scripting/include/tf2_isPlayerInSpawn.inc'
location: './lib-include'
# stocksoup/client.inc
- name: Download stocksoup/client.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/client.inc'
location: './lib-include/stocksoup'
# stocksoup/tf/client.inc
- name: Download stocksoup/tf/client.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/client.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/tf/econ.inc
- name: Download econ.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/econ.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/tf/entity_prop_stocks.inc
- name: Download entity_prop_stocks.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/entity_prop_stocks.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/tf/teams.inc
- name: Download teams.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/teams.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/tf/tempents_stocks.inc
- name: Download tempents_stocks.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/tempents_stocks.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/string.inc
- name: Download string.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/string.inc'
location: './lib-include/stocksoup'
# stocksoup/var_strings.inc
- name: Download var_strings.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/var_strings.inc'
location: './lib-include/stocksoup'
# stocksoup/tf/entity_prefabs.inc
- name: Download tf entity_prefabs.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/entity_prefabs.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/tf/entity_prefabs.inc
- name: Download tf entity_prefabs.inc master
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/entity_prefabs.inc'
location: './lib-include/stocksoup'
- name: Download entity_prop_stocks.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/entity_prop_stocks.inc'
location: './lib-include/stocksoup'
# stocksoup/tf/entity_tools
- name: Download entity_tools.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/entity_tools.inc'
location: './lib-include/stocksoup'
# stocksoup/tf/entity_prefabs
- name: Download master entity_prefabs.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/entity_prefabs.inc'
location: './lib-include/stocksoup'
# tf_cattr_buff_override.inc
- name: Download tf_cattr_buff_override.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/SM-TFCustomAttributeStarterPack/master/scripting/include/tf_cattr_buff_override.inc'
location: './lib-include'
# tf2wearables.inc
- name: Download tf2wearables.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/powerlord/sourcemod-tf2wearables/master/addons/sourcemod/scripting/include/tf2wearables.inc'
location: './lib-include'
# vphysics.inc
- name: Download vphysics.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/Alienmario/vphysics/patch-1/vphysics.inc'
location: './lib-include'
# smlib.inc & co
- name: Download smlib.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib.inc'
location: './lib-include'
- name: Download smlib/arrays.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/arrays.inc'
location: './lib-include/smlib'
- name: Download smlib/clients.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/clients.inc'
location: './lib-include/smlib'
- name: Download smlib/colors.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/colors.inc'
location: './lib-include/smlib'
- name: Download smlib/concommands.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/concommands.inc'
location: './lib-include/smlib'
- name: Download smlib/convars.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/convars.inc'
location: './lib-include/smlib'
- name: Download smlib/crypt.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/crypt.inc'
location: './lib-include/smlib'
- name: Download smlib/debug.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/debug.inc'
location: './lib-include/smlib'
- name: Download smlib/dynarrays.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/dynarrays.inc'
location: './lib-include/smlib'
- name: Download smlib/edicts.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/edicts.inc'
location: './lib-include/smlib'
- name: Download smlib/effects.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/effects.inc'
location: './lib-include/smlib'
- name: Download smlib/entities.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/entities.inc'
location: './lib-include/smlib'
- name: Download smlib/files.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/files.inc'
location: './lib-include/smlib'
- name: Download smlib/game.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/game.inc'
location: './lib-include/smlib'
- name: Download smlib/general.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/general.inc'
location: './lib-include/smlib'
- name: Download smlib/math.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/math.inc'
location: './lib-include/smlib'
- name: Download smlib/menus.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/menus.inc'
location: './lib-include/smlib'
- name: Download smlib/server.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/server.inc'
location: './lib-include/smlib'
- name: Download smlib/sql.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/sql.inc'
location: './lib-include/smlib'
- name: Download smlib/strings.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/strings.inc'
location: './lib-include/smlib'
- name: Download smlib/teams.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/teams.inc'
location: './lib-include/smlib'
- name: Download smlib/vehicles.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/vehicles.inc'
location: './lib-include/smlib'
- name: Download smlib/weapons.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/weapons.inc'
location: './lib-include/smlib'
- name: Download smlib/world.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/world.inc'
location: './lib-include/smlib'
# Compile
- name: Compile plugins
run: |
mkdir plugins
for file in *.sp;
do
if [[ $file == "joke"* ]]; then
echo "skipping " $file
continue;
fi
if [[ $file == *"dont_compile"* ]]; then
echo "skipping " $file
continue;
fi
if [[ $file == *"don_compile"* ]]; then
echo "skipping " $file
continue;
fi
if [[ $file == *"test"* ]]; then
echo "skipping " $file
continue;
fi
echo -e "\nCompiling $file..."
spcomp -O2 -v2 ${{ matrix.compiler-options }} -i include -i lib-include -o "plugins/$(basename -- "$file" .sp).smx" $file
done
echo "===OUT FILES==="
ls
echo "===PLUGINS FILES==="
cd plugins
ls
echo "===VERSIONS==="
echo version = ${{ steps.Setup_SourcePawn.outputs.version }}
echo plugin-version = ${{ steps.Setup_SourcePawn.outputs.plugin-version }}
working-directory: ${{ env.SCRIPTS_PATH }}