Skip to content

Bump actions/checkout from 2 to 4 (#4) #13

Bump actions/checkout from 2 to 4 (#4)

Bump actions/checkout from 2 to 4 (#4) #13

Workflow file for this run

name: Compile with SourceMod
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
SM_VERSION: ["1.10", "1.11"]
steps:
- uses: actions/checkout@v4
- name: Set environment variables
run: |
SOURCEMOD_PATH=$GITHUB_WORKSPACE/addons/sourcemod
echo "SOURCEMOD_PATH=$SOURCEMOD_PATH" >> $GITHUB_ENV
echo "SCRIPTING_PATH=$SOURCEMOD_PATH/scripting" >> $GITHUB_ENV
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }}
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.SM_VERSION }}
- name: Compiling plugins
run: |
for file in *.sp
do
echo -e "\nCompiling $file..."
spcomp -E -w234 -O2 -v2 -i $includePath -i $SCRIPTING_PATH/include $file
done
working-directory: ${{ env.SCRIPTING_PATH }}/