Skip to content
command

GitHub Action

Setup AMXXPawn Compiler

v1.1.0 Latest version

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: SergeyShorokhov/[email protected]

Learn more about this action in SergeyShorokhov/setup-amxxpawn

Choose a version

Setup AMXXPawn Action

This action sets-up, cache and adds amxmodx scripting directory to the path

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@v4

- uses: wopox1337/setup-amxxpawn@master
  with:
    version: '1.10.x'

- run: amxxpc -iAnotherIncludeDirectory 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.5467', '>= 1.10.5455']

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

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

      - run: amxxpc -iAnotherIncludeDirectory plugin.sma -o output/plugin.amxx

Extract the version of the .sma file:

jobs:
  build:
    runs-on: ubuntu-latest

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

      - name: Setup AMXX
        id: setup_amxx
        uses: wopox1337/setup-amxxpawn@master
        with:
          version: '1.10.x'
          version-file: ./plugin.sma

      - run: |
          amxxpc -iAnotherIncludeDirectory plugin.sma -o output/plugin.amxx
          echo Plugin version ${{ steps.setup_amxx.outputs.plugin-version }}