https://github.com/rumblefrog/setup-sp
This action sets-up, cache and adds sourcemod scripting directory to the path
https://github.com/rumblefrog/setup-sp
actions compiler setup sourcemod sourcepawn
Last synced: 5 days ago
JSON representation
This action sets-up, cache and adds sourcemod scripting directory to the path
- Host: GitHub
- URL: https://github.com/rumblefrog/setup-sp
- Owner: rumblefrog
- License: mit
- Created: 2019-11-14T17:45:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2026-01-11T21:06:30.000Z (18 days ago)
- Last Synced: 2026-01-12T00:56:45.278Z (18 days ago)
- Topics: actions, compiler, setup, sourcemod, sourcepawn
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/setup-sourcepawn-compiler
- Size: 906 KB
- Stars: 41
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Setup SourcePawn Action

This action sets-up, cache and adds sourcemod scripting directory to the path
# Usage
See [action.yml](https://github.com/rumblefrog/setup-sp/blob/master/action.yml)
## Basic:
```yaml
steps:
- uses: actions/checkout@v3
- uses: rumblefrog/setup-sp@master
with:
version: '1.12.x'
- run: spcomp -iAnotherIncludeDirectory plugin.sp -o output/plugin.smx
```
## Matrix:
```yaml
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
sm-version: [ '1.11.x', '1.12.x', '1.11.6467', '>= 1.11.6478']
name: SM version ${{ matrix.sm-version }}
steps:
- uses: actions/checkout@v3
- name: Setup SP
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.sm-version }}
- run: spcomp -iAnotherIncludeDirectory plugin.sp -o output/plugin.smx
```
## Extract the version of the .sp file:
```yaml
jobs:
build:
runs-on: ubuntu-latest
name: SM version ${{ matrix.sm-version }}
steps:
- uses: actions/checkout@v1
- name: Setup SP
id: setup_sp
uses: rumblefrog/setup-sp@master
with:
version: '1.10.x'
version-file: ./plugin.sp
- run: |
spcomp -iAnotherIncludeDirectory plugin.sp -o output/plugin.smx
echo Plugin version ${{ steps.setup_sp.outputs.plugin-version }}
```
A complete workflow example can be found [here](https://github.com/Sarrus1/DiscordWebhookAPI/blob/master/.github/workflows/master.yml).