Skip to content

Workflow file for this run

name: Build
on:
workflow_dispatch:
workflow_call:
push:
paths-ignore:
- "**.md"
- "**.spr"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set $SHORT_SHA
run: echo "SHORT_SHA=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
- name: Setup AMXXPawn Compiler
uses: wopox1337/setup-amxxpawn@v1
- name: Compile plugins
working-directory: cstrike/addons/amxmodx/scripting/
run: |
compile() {
sourcefile=$1
amxxfile="$(echo $sourcefile | sed -e 's/\.sma$/.amxx/')"
output_path="../plugins/$amxxfile"
mkdir -p $(dirname $output_path)
echo -n "Compiling $sourcefile ... "
amxxpc "$sourcefile" -o"$output_path" -i"include" && echo "Done"
}
export -f compile
find . -type f -name "*.sma" -exec bash -c 'compile "$0"' {} \;
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Server-Side_SmokeNade-$SHORT_SHA
path: cstrike
compression-level: 9