-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (32 loc) · 895 Bytes
/
master.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
name: Compile with SourceMod
on:
pull_request:
branches: master
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set environment variables
run: echo SCRIPTS_PATH=$(pwd) >> $GITHUB_ENV
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }}
id: setup_sp
uses: rumblefrog/setup-sp@master
with:
version: '1.10.x'
version-file: ./example.sp
- name: Compile plugins
run: |
for file in example.sp
do
echo -e "\nCompiling $file..."
spcomp -E -w234 -O2 -v2 -i include $file
done
echo "===OUT FILES==="
ls
echo version = ${{ steps.setup_sp.outputs.plugin-version }}
working-directory: ${{ env.SCRIPTS_PATH }}