Skip to content

🐞 fix: Not building with int #14

🐞 fix: Not building with int

🐞 fix: Not building with int #14

Workflow file for this run

name: Test build
on:
workflow_dispatch:
push:
paths:
- 'addons/sourcemod/scripting/**'
pull_request:
paths:
- 'addons/sourcemod/scripting/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
SM_VERSION: ["1.11", "1.12"]
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 $SCRIPTING_PATH/include $file
done
working-directory: ${{ env.SCRIPTING_PATH }}/