mirror of
https://github.com/rumblefrog/setup-sp.git
synced 2026-01-14 03:30:01 +01:00
This action sets-up, cache and adds sourcemod scripting directory to the path
Bumps [qs](https://github.com/ljharb/qs) from 6.13.0 to 6.14.1. - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](https://github.com/ljharb/qs/compare/v6.13.0...v6.14.1) --- updated-dependencies: - dependency-name: qs dependency-version: 6.14.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|---|---|---|
| .github/workflows | ||
| __tests__ | ||
| lib | ||
| src | ||
| .gitattributes | ||
| .gitignore | ||
| action.yml | ||
| CODEOWNERS | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| webpack.config.js | ||
Setup SourcePawn Action
This action sets-up, cache and adds sourcemod scripting directory to the path
Usage
See action.yml
Basic:
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:
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:
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.