Skip to content

Merge branch 'master' into development #17

Merge branch 'master' into development

Merge branch 'master' into development #17

name: Compile Plugin
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
sm-version: [ '1.11.x' ]
name: SM version ${{ matrix.sm-version }}
steps:
- uses: actions/checkout@v3
- name: Setup SourcePawn Compiler
id: setup
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.sm-version }}
- name: Create plugins directory
run: mkdir -p plugins
- run: spcomp -i ./scripting/include ./scripting/deathmatch.sp -o ./plugins/deathmatch.smx
- run: spcomp -i ./scripting/include ./scripting/deathmatch_loader.sp -o ./plugins/deathmatch_loader.smx
- name: Prepare files for artifact
run: |
mkdir artifact
mv ./configs ./artifact
mv ./plugins ./artifact/
mv ./scripting ./artifact/
mv ./translations ./artifact
mv ./LICENSE ./artifact/
mv ./CHANGELOG.md ./artifact
mv ./README.md ./artifact
- name: Upload compiled plugin
uses: actions/upload-artifact@v1
with:
name: Compiled plugin with SM ${{ steps.setup.outputs.version }}
path: artifact