Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
command

GitHub Action

Setup SourcePawn Compiler

v1.0.1

Setup SourcePawn Compiler

command

Setup SourcePawn Compiler

Install and setup SourcePawn compiler

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup SourcePawn Compiler

uses: rumblefrog/[email protected]

Learn more about this action in rumblefrog/setup-sp

Choose a version

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@v1

- uses: rumblefrog/setup-sp@master
  with:
    version: '1.10.x'

- run: spcomp -iAnotherIncludeDirectory plugin.sp -o output/plugin.smx

Matrix:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        sm-version: [ '1.10.x', '1.11.x', '1.11.6467', '>= 1.11.6478']

    name: SM version ${{ matrix.sm-version }}
    steps:
      - uses: actions/checkout@v1

      - name: Setup SP
        uses: rumblefrog/setup-sp@master
        with:
          version: ${{ matrix.sm-version }}

      - run: spcomp -iAnotherIncludeDirectory plugin.sp -o output/plugin.smx