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

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 94.9%
  • JavaScript 5.1%