-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (39 loc) · 1.08 KB
/
sourcemod.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
name: Compile & Upload
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
SM_VERSION: ["1.10", "1.11"]
steps:
- uses: actions/checkout@v2
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }}
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.SM_VERSION }}
- name: Compile
run: |
mkdir compiled
make CC=spcomp64 all
- name: Bundle
run: |
mkdir -p bundle/addons/sourcemod/plugins
cp compiled/*.smx bundle/addons/sourcemod/plugins
mkdir scripting
cp -r include/ scripting
cp *.sp scripting/
cp -r configs/ bundle/addons/sourcemod
cp -r scripting/ bundle/addons/sourcemod
cp -r translations/ bundle/addons/sourcemod
cp -r sound/ bundle
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: gfl-dm-pack
path: ./bundle