Skip to content

Setup AMXXPawn Compiler

Actions
Install and setup AMXXPawn compiler
v1.1.0
Latest
Star (11)

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 }}

Setup AMXXPawn Compiler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Install and setup AMXXPawn compiler
v1.1.0
Latest

Setup AMXXPawn Compiler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.