Skip to content

Latest commit

 

History

History
67 lines (49 loc) · 1.46 KB

README.md

File metadata and controls

67 lines (49 loc) · 1.46 KB

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