Skip to content

SergeyShorokhov/setup-amxxpawn

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

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