Skip to content
This repository was archived by the owner on Jun 15, 2025. It is now read-only.

spiretf/spcomp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPCOMP

Docker image for compiling sourcepawn scripts

Usage

docker run --rm -v "$PWD":/data spiretf/spcomp inputfile.sp

If the /output directory is mounted then the resulting plugins will be created there.

Extensions

The docker image comes with include files for the following sourcemod extensions

Additional include files can be added by mounting them inside /include

Github action

You can also use the github action to automatically compile your sourcepawn scripts whenever they are modified.

Create a .github/workflows/compile.yaml with the following contents, adjusting the paths to your plugin

name: Build sourcepawn and commit

on:
  push:
    paths:
      - '**.sp'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Compile sourcepawn
        uses: spiretf/spcomp@v0.1.0
        with:
          source: './plugin/myplugin.sp'
          target: './plugin/myplugin.smx'

      - name: Commit files
        run: |
          git config --local user.email "action@github.com"
          git config --local user.name "GitHub Action"
          git commit -m "Compile sourcepawn" -a
      - name: Push changes
        uses: ad-m/github-push-action@master
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

About

Docker image for compiling sourcepawn scripts

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published