-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 905 Bytes
/
master.yml
File metadata and controls
38 lines (32 loc) · 905 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
37
38
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.x", "1.13.x"]
steps:
- uses: actions/checkout@v2
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }}
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.SM_VERSION }}
- name: Compile plugins
run: |
for file in $(find -type f -name "*.sp")
do
echo -e "\nCompiling $file..."
spcomp64 -v2 -i "${{ github.workspace }}/include" "$file"
done
working-directory: ${{ env.SCRIPTS_PATH }}
- name: Upload Compiled Plugins
uses: actions/upload-artifact@v4
with:
name: plugins-${{ matrix.SM_VERSION }}
path: ./**/*.smx