-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (28 loc) · 978 Bytes
/
test.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
name: Test Sourcemod compilation
on:
pull_request:
branches: main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set environment variables
run: echo SCRIPTS_PATH=$(pwd) >> $GITHUB_ENV
- name: Download SourcePawn plugin dependencies
uses: Zabaniya001/SPDependy@v2
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }}
id: setup_sp
uses: rumblefrog/setup-sp@master
with:
version: "1.11.x"
version-file: ./scripting/attribute_viewmodel_override.sp
- name: Compile plugins
run: |
mkdir plugins
spcomp -w234 -O2 -v2 -i"scripting/include" -i".temp/include" -o"plugins/attribute_viewmodel_override.smx" scripting/attribute_viewmodel_override.sp
working-directory: ${{ env.SCRIPTS_PATH }}