-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (43 loc) · 1.3 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
42
43
44
45
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.11", "1.12"]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }}
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.SM_VERSION }}
- name: Set vars
id: vars
run: |
SHORT_SHA=$(git rev-parse --short HEAD)
echo "plugin_version=${{ matrix.SM_VERSION }}.$SHORT_SHA" >> $GITHUB_OUTPUT
- name: Compile
run: |
make CC=spcomp64 gflbans
- name: Bundle
run: |
mkdir -p bundle/addons/sourcemod/plugins
cp compiled/*.smx bundle/addons/sourcemod/plugins
cp -r test/ scripting/gflbans/test
cp -r scripting/ bundle/addons/sourcemod
cp -r translations/ bundle/addons/sourcemod
cp -r gamedata/ bundle/addons/sourcemod
cp -r configs/ bundle/addons/sourcemod
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: gflbans.${{ steps.vars.outputs.plugin_version }}
path: ./bundle