forked from Bara/Multi-Colors
-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (29 loc) · 941 Bytes
/
master.yml
File metadata and controls
36 lines (29 loc) · 941 Bytes
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
name: Compile with SourceMod
on:
pull_request:
branches: master
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sm_version: ["1.12", "1.13"]
steps:
- uses: actions/checkout@v6
- name: Set environment variables
run: |
SOURCEMOD_PATH=$GITHUB_WORKSPACE/addons/sourcemod
echo "SOURCEMOD_PATH=$SOURCEMOD_PATH" >> $GITHUB_ENV
echo "SCRIPTING_PATH=$SOURCEMOD_PATH/scripting" >> $GITHUB_ENV
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }}
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.SM_VERSION }}
- name: Compile plugin
run: |
echo -e "\nCompiling test_compile.sp..."
spcomp -E -w234 -O2 -v2 -i$includePath -i$SCRIPTING_PATH/include test_compile.sp
working-directory: ${{ env.SCRIPTING_PATH }}/tests