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 AMXXPawn Compiler

v1.0.2

Setup AMXXPawn Compiler

command

Setup AMXXPawn Compiler

Install and setup AMXXPawn compiler

Installation

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

              

- name: Setup AMXXPawn Compiler

uses: wopox1337/[email protected]

Learn more about this action in wopox1337/setup-amxxpawn

Choose a version

Setup AMXXPawn Action

Main workflow

This action sets up a amxmodx environment for use in actions by:

  • optionally downloading and caching a version of amxmodx version and adding to PATH

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@v2

- uses: wopox1337/setup-amxxpawn@v1

- run: amxxpc -i"AnotherIncludeDirectory" plugin.sma -o"output/plugin.amxx"

Matrix:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        amxx-version: [ '1.9.x', '1.10.x', '1.10.5428', '>= 1.10.5428']

    name: AMXXPawn version ${{ matrix.amxx-version }}
    steps:
      - uses: actions/checkout@v2

      - name: Setup AMXXPawn
        uses: wopox1337/setup-amxxpawn@v1
        with:
          version: ${{ matrix.amxx-version }}

      - run: amxxpc -i"AnotherIncludeDirectory" plugin.sma -o"output/plugin.amxx"

Credits

Thanks to https://github.com/rumblefrog/setup-sp repository author for great example. This action based on this code.