forked from Krevik/Kether.pl-L4D2-Server
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (47 loc) · 1.27 KB
/
check_plugins.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
name: Check all plugins
on:
pull_request:
paths:
- 'addons/sourcemod/scripting/*.sp'
- 'addons/sourcemod/scripting/*.inc'
branches:
- Satanixon_Scavenge
push:
paths:
- 'addons/sourcemod/scripting/*.sp'
- 'addons/sourcemod/scripting/*.inc'
branches:
- Satanixon_Scavenge
workflow_dispatch:
paths:
- 'addons/sourcemod/scripting/*.sp'
- 'addons/sourcemod/scripting/*.inc'
branches:
- Satanixon_Scavenge
jobs:
build:
name: build with sm${{ matrix.sm_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sm_version:
- "1.11"
- "1.12"
steps:
- uses: actions/checkout@v2
- name: Set environment variables
run: |
echo "SCRIPTS_PATH=$GITHUB_WORKSPACE/addons/sourcemod/scripting" >> $GITHUB_ENV
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }}
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.SM_VERSION }}
- name: Compile plugins
run: |
for file in *.sp
do
echo -e "\nCompiling $file..."
spcomp -w234 -O2 -v2 -i $SCRIPTS_PATH/include $file
done
working-directory: ${{ env.SCRIPTS_PATH }}/